aboutsummaryrefslogtreecommitdiff
path: root/control/ledctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'control/ledctl.c')
-rw-r--r--control/ledctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/control/ledctl.c b/control/ledctl.c
index 76bdc67..8a5bfea 100644
--- a/control/ledctl.c
+++ b/control/ledctl.c
@@ -5,6 +5,7 @@
const char *mode_string[] = {
+ [MODE_SOLID_WARM] = "#70200A",
[MODE_SOLID_RED] = "#FF0000",
[MODE_SOLID_GREEN] = "#00FF00",
[MODE_SOLID_BLUE] = "#0000FF",
@@ -34,6 +35,7 @@ void click_left() {
switch (state) {
case STATE_DEFAULT:
enabled = 1;
+ update_mode(); // just to make sure that all is in sync
update_brightness();
break;
case STATE_BRIGHTNESS_SELECT:
@@ -43,7 +45,7 @@ void click_left() {
break;
case STATE_COLOR_SELECT:
if (mode >= MODE_RAINBOW)
- mode = MODE_SOLID_RED;
+ mode = MODE_SOLID_WARM;
else
mode++;
update_mode();
@@ -65,7 +67,7 @@ void click_right() {
update_brightness();
break;
case STATE_COLOR_SELECT:
- if (mode <= MODE_SOLID_RED)
+ if (mode <= MODE_SOLID_WARM)
mode = MODE_RAINBOW;
else
mode--;