(minor) fix for apChannel reset to 1 instead of 6
spotted by @dedehai in https://github.com/wled/WLED/pull/5332
This commit is contained in:
@@ -67,7 +67,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
|
|||||||
//int ap_pskl = ap[F("pskl")];
|
//int ap_pskl = ap[F("pskl")];
|
||||||
|
|
||||||
CJSON(apChannel, ap[F("chan")]);
|
CJSON(apChannel, ap[F("chan")]);
|
||||||
if (apChannel > 13 || apChannel < 1) apChannel = 1;
|
if (apChannel > 13 || apChannel < 1) apChannel = 6; // reset to default if invalid
|
||||||
|
|
||||||
CJSON(apHide, ap[F("hide")]);
|
CJSON(apHide, ap[F("hide")]);
|
||||||
if (apHide > 1) apHide = 1;
|
if (apHide > 1) apHide = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user