Skip to content

Commit

Permalink
fix fade
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyKey authored and OnlyKey committed Mar 28, 2017
1 parent 8ad0d4e commit 05be7e0
Show file tree
Hide file tree
Showing 2 changed files with 10,885 additions and 9,058 deletions.
10 changes: 5 additions & 5 deletions OnlyKey_Beta/OnlyKey_Beta.ino
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

#define DEBUG //Enable Serial Monitor
#define US_VERSION //Define for US Version Firmare
//#define OK_Color //Color Version
#define OK_Color //Color Version

#include "sha256.h"
#include <EEPROM.h>
Expand Down Expand Up @@ -143,7 +143,7 @@ Task taskKB(100, sendKey); // Default send kb codes every 100 ms
Task taskInitialized(1000, sendInitialized);
char keybuffer[EElen_url+EElen_delay+EElen_addchar+EElen_username+EElen_delay+EElen_addchar+EElen_password+EElen_addchar+EElen_2FAtype+64]; //Buffer to hold all keystrokes
char *pos;
extern uint8_t fade;
extern uint8_t isfade;
/*************************************/
//SSH
/*************************************/
Expand Down Expand Up @@ -311,7 +311,7 @@ void checkKey(Task* me) {
}
}

if(configmode && unlocked && !fade) {
if(configmode && unlocked && !isfade) {
#ifdef OK_Color
NEO_Color = 1; //Red
#endif
Expand Down Expand Up @@ -378,7 +378,7 @@ void checkKey(Task* me) {
#else
analogWrite(BLINKPIN, 0); //LED OFF
#endif
} else if (!fade) {
} else if (!isfade) {
#ifdef OK_Color
setcolor(85); // NEO Pixel ON Green
#else
Expand Down Expand Up @@ -733,7 +733,7 @@ void gen_hold(void) {
return;
}
#ifdef OK_Color
setcolor(85); // NEO Pixel OFF
setcolor(0); // NEO Pixel OFF
#else
analogWrite(BLINKPIN, 0); //LED OFF
#endif
Expand Down
Loading

0 comments on commit 05be7e0

Please sign in to comment.