mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-14 18:50:01 +01:00
Fix setChannel range check (#1495)
This commit is contained in:
@@ -85,7 +85,7 @@ namespace wifi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setChannel(uint8_t ch) {
|
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");
|
debuglnF("ERROR: Channel must be withing the range of 1-14");
|
||||||
} else {
|
} else {
|
||||||
ap_settings.channel = ch;
|
ap_settings.channel = ch;
|
||||||
|
|||||||
Reference in New Issue
Block a user