From faddfe8eb862d0f1c2c4a076e097991ab7fd6ae3 Mon Sep 17 00:00:00 2001 From: Stefan Kremser Date: Fri, 10 May 2019 12:13:24 +0200 Subject: [PATCH] Removing Deauth LED Mode (now same as attack) --- esp8266_deauther/LED.cpp | 8 +------- esp8266_deauther/LED.h | 9 ++++----- 2 files changed, 5 insertions(+), 12 deletions(-) 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 {