diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index 7b842d630c..4316b2c4ce 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -735,7 +735,7 @@ void serializeConfig() { JsonObject wifi = doc.createNestedObject("wifi"); wifi[F("sleep")] = !noWifiSleep; - wifi[F("phy")] = (int)force802_3g; + wifi[F("phy")] = force802_3g; #ifdef WLED_USE_ETHERNET JsonObject ethernet = doc.createNestedObject("eth");