mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-05 14:19:59 +01:00
Fix setChannel range check (#1495)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user