diff options
| author | Selene ToyKeeper | 2021-10-09 09:57:48 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-10-09 09:57:48 -0600 |
| commit | f8abab2fa92d05f1f709c1b5c297e4ab804c483e (patch) | |
| tree | 50040f8176277b99cf3324b76d624d6f92ed9e2c /spaghetti-monster | |
| parent | added attiny type to the MODELS file, rewrote how MODELS file gets generated (diff) | |
| download | anduril-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.c | 2 |
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) {} |
