@@ -20,17 +20,19 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
2020
2121 // long vid = doc[F("vid")]; // 2010020
2222
23- #ifdef WLED_USE_ETHERNET
23+ #ifdef WLED_USE_ETHERNET
2424 JsonObject ethernet = doc[F (" eth" )];
2525 CJSON (ethernetType, ethernet[" type" ]);
2626 // NOTE: Ethernet configuration takes priority over other use of pins
2727 WLED::instance ().initEthernet ();
28- #endif
28+ #endif
2929
3030 JsonObject id = doc[" id" ];
3131 getStringFromJson (cmDNS, id[F (" mdns" )], 33 );
3232 getStringFromJson (serverDescription, id[F (" name" )], 33 );
33+ #ifndef WLED_DISABLE_ALEXA
3334 getStringFromJson (alexaInvocationName, id[F (" inv" )], 33 );
35+ #endif
3436 CJSON (simplifiedUI, id[F (" sui" )]);
3537
3638 JsonObject nw = doc[" nw" ];
@@ -109,8 +111,8 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
109111 uint16_t ablMilliampsMax = hw_led[F (" maxpwr" )] | BusManager::ablMilliampsMax ();
110112 BusManager::setMilliampsMax (ablMilliampsMax);
111113 Bus::setGlobalAWMode (hw_led[F (" rgbwm" )] | AW_GLOBAL_DISABLED);
112- CJSON (correctWB, hw_led[" cct" ]);
113- CJSON (cctFromRgb, hw_led[F (" cr" )]);
114+ CJSON (strip. correctWB , hw_led[" cct" ]);
115+ CJSON (strip. cctFromRgb , hw_led[F (" cr" )]);
114116 CJSON (cctICused, hw_led[F (" ic" )]);
115117 CJSON (strip.cctBlending , hw_led[F (" cb" )]);
116118 Bus::setCCTBlend (strip.cctBlending );
@@ -431,7 +433,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
431433 JsonObject light = doc[F (" light" )];
432434 CJSON (briMultiplier, light[F (" scale-bri" )]);
433435 CJSON (strip.paletteBlend , light[F (" pal-mode" )]);
434- CJSON (autoSegments, light[F (" aseg" )]);
436+ CJSON (strip. autoSegments , light[F (" aseg" )]);
435437
436438 CJSON (gammaCorrectVal, light[" gc" ][" val" ]); // default 2.8
437439 float light_gc_bri = light[" gc" ][" bri" ];
@@ -530,12 +532,12 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
530532 CJSON (arlsDisableGammaCorrection, if_live[F (" no-gc" )]); // false
531533 CJSON (arlsOffset, if_live[F (" offset" )]); // 0
532534
535+ #ifndef WLED_DISABLE_ALEXA
533536 CJSON (alexaEnabled, interfaces[" va" ][F (" alexa" )]); // false
534-
535537 CJSON (macroAlexaOn, interfaces[" va" ][" macros" ][0 ]);
536538 CJSON (macroAlexaOff, interfaces[" va" ][" macros" ][1 ]);
537-
538539 CJSON (alexaNumPresets, interfaces[" va" ][" p" ]);
540+ #endif
539541
540542#ifndef WLED_DISABLE_MQTT
541543 JsonObject if_mqtt = interfaces[" mqtt" ];
@@ -739,7 +741,9 @@ void serializeConfig() {
739741 JsonObject id = root.createNestedObject (" id" );
740742 id[F (" mdns" )] = cmDNS;
741743 id[F (" name" )] = serverDescription;
744+ #ifndef WLED_DISABLE_ALEXA
742745 id[F (" inv" )] = alexaInvocationName;
746+ #endif
743747 id[F (" sui" )] = simplifiedUI;
744748
745749 JsonObject nw = root.createNestedObject (" nw" );
@@ -818,8 +822,8 @@ void serializeConfig() {
818822 hw_led[F (" total" )] = strip.getLengthTotal (); // provided for compatibility on downgrade and per-output ABL
819823 hw_led[F (" maxpwr" )] = BusManager::ablMilliampsMax ();
820824 hw_led[F (" ledma" )] = 0 ; // no longer used
821- hw_led[" cct" ] = correctWB;
822- hw_led[F (" cr" )] = cctFromRgb;
825+ hw_led[" cct" ] = strip. correctWB ;
826+ hw_led[F (" cr" )] = strip. cctFromRgb ;
823827 hw_led[F (" ic" )] = cctICused;
824828 hw_led[F (" cb" )] = strip.cctBlending ;
825829 hw_led[" fps" ] = strip.getTargetFps ();
@@ -931,7 +935,7 @@ void serializeConfig() {
931935 JsonObject light = root.createNestedObject (F (" light" ));
932936 light[F (" scale-bri" )] = briMultiplier;
933937 light[F (" pal-mode" )] = strip.paletteBlend ;
934- light[F (" aseg" )] = autoSegments;
938+ light[F (" aseg" )] = strip. autoSegments ;
935939
936940 JsonObject light_gc = light.createNestedObject (" gc" );
937941 light_gc[" bri" ] = (gammaCorrectBri) ? gammaCorrectVal : 1 .0f ; // keep compatibility
0 commit comments