From f8abab2fa92d05f1f709c1b5c297e4ab804c483e Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 9 Oct 2021 09:57:48 -0600 Subject: don't hardcode 2.9V for aux LED shutoff (use the same value as LVP; easier to configure if it's in only one place) --- 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 3195fdc..a0a6d7a 100644 --- a/spaghetti-monster/anduril/aux-leds.c +++ b/spaghetti-monster/anduril/aux-leds.c @@ -64,7 +64,7 @@ uint8_t voltage_to_rgb() { 255, 6, // 7, R+G+B }; uint8_t volts = voltage; - if (volts < 29) return 0; + if (volts < VOLTAGE_LOW) return 0; uint8_t i; for (i = 0; volts >= levels[i]; i += 2) {} -- cgit v1.2.3