From ad4fb567fbc0a86fcc24ceba951e467ab8b91211 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Thu, 12 Oct 2023 15:11:26 -0600 Subject: fixed RGB aux colors being off by one (bug introduced in r772, when adding AA/NiMH RGB voltage support) --- spaghetti-monster/anduril/aux-leds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spaghetti-monster') diff --git a/spaghetti-monster/anduril/aux-leds.c b/spaghetti-monster/anduril/aux-leds.c index 097cf28..af59aa6 100644 --- a/spaghetti-monster/anduril/aux-leds.c +++ b/spaghetti-monster/anduril/aux-leds.c @@ -131,7 +131,7 @@ void rgb_led_update(uint8_t mode, uint16_t arg) { } #endif - const uint8_t *colors = rgb_led_colors; + const uint8_t *colors = rgb_led_colors + 1; uint8_t actual_color = 0; if (color < 7) { // normal color actual_color = pgm_read_byte(colors + color); -- cgit v1.2.3