@@ -853,8 +853,8 @@ zaf_event_distributor_app_proprietary(event_nc_t *event)
853853 // Fade slowly to white
854854 LedEffectFade_t fade = {
855855 .color = cold_white ,
856- .brightness = FADE_MIN_BRIGHTNESS ,
857- .increasing = true ,
856+ .brightness = FADE_MAX_BRIGHTNESS ,
857+ .increasing = false ,
858858 .ticksPerStep = 2 ,
859859 .stepSize = 1 ,
860860 .tickCounter = 0
@@ -870,11 +870,11 @@ zaf_event_distributor_app_proprietary(event_nc_t *event)
870870 case EVENT_APP_CONNECTED : {
871871 if (ledEffectDefault .type == LED_EFFECT_FADE ) {
872872 // Stop the animation to indicate that we're connected
873- ledEffectDefault .effect .fade .stopAtMin = true;
873+ ledEffectDefault .effect .fade .stopAtMax = true;
874874 } else {
875- // If we were not in fade mode, set the color to black
875+ // If we were not in fade mode, set the color to white
876876 LedEffectSolid_t solid = {
877- .color = black ,
877+ .color = cold_white ,
878878 .modified = true
879879 };
880880 ledEffectDefault = (LedEffect_t ) {
@@ -990,10 +990,10 @@ zaf_event_distributor_app_proprietary(event_nc_t *event)
990990 // and update the color
991991 LedEffectFade_t fade = ledEffect -> effect .fade ;
992992
993- if (fade .brightness <= FADE_DIM_THRESHOLD && fade .stopAtMin ) {
993+ if (fade .brightness >= FADE_BRIGHT_THRESHOLD && fade .stopAtMax ) {
994994 // Switch to solid mode
995995 LedEffectSolid_t solid = {
996- .color = black ,
996+ .color = fade . color ,
997997 .modified = true
998998 };
999999 * ledEffect = (LedEffect_t ) {
@@ -1235,8 +1235,8 @@ ApplicationInit(
12351235 };
12361236 set_color_buffer (color );
12371237 } else {
1238- // Default to off
1239- set_color_buffer (black );
1238+ // Default to on
1239+ set_color_buffer (cold_white );
12401240 }
12411241
12421242 // Try to restore configuration settings from NVM
0 commit comments