diff --git a/esp8266_deauther/Attack.cpp b/esp8266_deauther/Attack.cpp index 41f5667108..5601f0703d 100644 --- a/esp8266_deauther/Attack.cpp +++ b/esp8266_deauther/Attack.cpp @@ -324,11 +324,11 @@ void Attack::refreshLed(){ } if(numberRunning>=1 && settings.useLed){ if(debug) Serial.println("Attack LED : ON"); - digitalWrite(BUILTIN_LED, LOW); + digitalWrite(2, LOW); } else if(numberRunning==0 || !settings.useLed){ if(debug) Serial.println("Attack LED : OFF"); - digitalWrite(BUILTIN_LED, HIGH); + digitalWrite(2, HIGH); } } diff --git a/esp8266_deauther/esp8266_deauther.ino b/esp8266_deauther/esp8266_deauther.ino index 5ba4cd8604..ccde40ea30 100644 --- a/esp8266_deauther/esp8266_deauther.ino +++ b/esp8266_deauther/esp8266_deauther.ino @@ -51,11 +51,12 @@ void setup() { Serial.begin(115200); delay(2000); + pinMode(2, OUTPUT); + delay(50); + digitalWrite(2, HIGH); + EEPROM.begin(4096); - - pinMode(BUILTIN_LED, OUTPUT); - digitalWrite(BUILTIN_LED, HIGH); - + settings.load(); if (debug) settings.info(); nameList.load();