aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-10-09 09:57:48 -0600
committerSelene ToyKeeper2021-10-09 09:57:48 -0600
commitf8abab2fa92d05f1f709c1b5c297e4ab804c483e (patch)
tree50040f8176277b99cf3324b76d624d6f92ed9e2c
parentadded attiny type to the MODELS file, rewrote how MODELS file gets generated (diff)
downloadanduril-f8abab2fa92d05f1f709c1b5c297e4ab804c483e.tar.gz
anduril-f8abab2fa92d05f1f709c1b5c297e4ab804c483e.tar.bz2
anduril-f8abab2fa92d05f1f709c1b5c297e4ab804c483e.zip
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)
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/anduril/aux-leds.c2
1 files changed, 1 insertions, 1 deletions
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) {}