From 02d5ad0d2a914ae30079119d041a575ade8bcd0f Mon Sep 17 00:00:00 2001 From: Temm Date: Mon, 18 Apr 2022 12:24:46 +0200 Subject: [PATCH] Fix setChannel range check (#1495) --- esp8266_deauther/wifi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp8266_deauther/wifi.cpp b/esp8266_deauther/wifi.cpp index 08c83c9..b8c2c90 100644 --- a/esp8266_deauther/wifi.cpp +++ b/esp8266_deauther/wifi.cpp @@ -85,7 +85,7 @@ namespace wifi { } void setChannel(uint8_t ch) { - if ((ch < 1) && (ch > 14)) { + if ((ch < 1) || (ch > 14)) { debuglnF("ERROR: Channel must be withing the range of 1-14"); } else { ap_settings.channel = ch;