summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2018-04-12 13:33:58 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2018-04-12 13:33:58 -0700
commit5f9b3f2b8756549143346993b7f16d2d4be6b92f (patch)
treed3e7eee3a5976135667f8a919ebdecac7acb2284 /supervisor
parentf02cbeabab3091c70a9d40b6a9f9bea3516b2eec (diff)
Fix the status neopixel flashing.
We were storing the wrong current color.
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/shared/rgb_led_status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/supervisor/shared/rgb_led_status.c b/supervisor/shared/rgb_led_status.c
index 5b55c1ba2..8f1b506fe 100644
--- a/supervisor/shared/rgb_led_status.c
+++ b/supervisor/shared/rgb_led_status.c
@@ -97,7 +97,7 @@ void rgb_led_status_init() {
#if defined(MICROPY_HW_NEOPIXEL) || (defined(MICROPY_HW_APA102_MOSI) && defined(MICROPY_HW_APA102_SCK))
// Force a write of the current status color.
uint32_t rgb = current_status_color;
- current_status_color = 0;
+ current_status_color = 0x1000000; // Not a valid color
new_status_color(rgb);
#endif
}
@@ -118,7 +118,7 @@ void new_status_color(uint32_t rgb) {
return;
}
uint32_t rgb_adjusted = color_brightness(rgb, rgb_status_brightness);
- current_status_color = rgb_adjusted;
+ current_status_color = rgb;
#endif
#ifdef MICROPY_HW_NEOPIXEL