Skip to content

Commit 7fd2393

Browse files
committed
(minor) fix for apChannel reset to 1 instead of 6
spotted by @DedeHai in wled#5332
1 parent 5eab1e7 commit 7fd2393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/cfg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
6767
//int ap_pskl = ap[F("pskl")];
6868

6969
CJSON(apChannel, ap[F("chan")]);
70-
if (apChannel > 13 || apChannel < 1) apChannel = 1;
70+
if (apChannel > 13 || apChannel < 1) apChannel = 6; // reset to default if invalid
7171

7272
CJSON(apHide, ap[F("hide")]);
7373
if (apHide > 1) apHide = 1;

0 commit comments

Comments
 (0)