Fix setChannel range check (#1495)
This commit is contained in:
parent
7d6f22c4e6
commit
02d5ad0d2a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue