diff --git a/esp8266_deauther/LED.cpp b/esp8266_deauther/LED.cpp index 0fddba6..f667f10 100644 --- a/esp8266_deauther/LED.cpp +++ b/esp8266_deauther/LED.cpp @@ -21,9 +21,7 @@ void LED::update() { if (scan.isScanning() && (scan.deauths < settings.getMinDeauths())) { setMode(SCAN); - } else if (scan.deauths >= settings.getMinDeauths()) { - setMode(DEAUTH); - } else if (attack.isRunning()) { + } else if (attack.isRunning() || (scan.deauths >= settings.getMinDeauths())) { setMode(ATTACK); } else { setMode(IDLE); @@ -54,10 +52,6 @@ void LED::setMode(LED_MODE mode, bool force) { setColor(255, 0, 0); break; - case DEAUTH: - setColor(255, 0, 0); - break; - case IDLE: setColor(0, 255, 0); break; diff --git a/esp8266_deauther/LED.h b/esp8266_deauther/LED.h index a635efc..9802b46 100644 --- a/esp8266_deauther/LED.h +++ b/esp8266_deauther/LED.h @@ -12,11 +12,10 @@ #endif // if defined(NEOPIXEL_LED) enum LED_MODE { - OFF = 0, - SCAN = 1, - ATTACK = 2, - DEAUTH = 3, - IDLE = 4 + OFF, + SCAN, + ATTACK, + IDLE }; class LED {