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)
-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) {}
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.