aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-06-29 02:34:16 -0600
committerSelene ToyKeeper2023-06-29 02:34:16 -0600
commit03ca4d30f686050523279ebdee185f7735659a48 (patch)
tree433b9a01094742d6effc59250eb738109b8863cd /spaghetti-monster
parentmoved definition of BLINK_ONCE_TIME to the same file as BLINK_BRIGHTNESS (diff)
downloadanduril-03ca4d30f686050523279ebdee185f7735659a48.tar.gz
anduril-03ca4d30f686050523279ebdee185f7735659a48.tar.bz2
anduril-03ca4d30f686050523279ebdee185f7735659a48.zip
fixed red aux blink on 1st frame of post-off voltage display
(patch contributed by SiteRelEnby) https://github.com/SiteRelEnby/anduril2/commit/558778e22f7c7a438dcf43e35e784c7e5be049c7
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/aux-leds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/aux-leds.c b/spaghetti-monster/anduril/aux-leds.c
index f18ceb0..c784fd1 100644
--- a/spaghetti-monster/anduril/aux-leds.c
+++ b/spaghetti-monster/anduril/aux-leds.c
@@ -109,6 +109,7 @@ void rgb_led_update(uint8_t mode, uint16_t arg) {
// (but not after changing aux LED settings and other similar actions)
else if ((arg < (cfg.post_off_voltage * SLEEP_TICKS_PER_SECOND))
&& (ticks_since_on < (cfg.post_off_voltage * SLEEP_TICKS_PER_SECOND))
+ && (ticks_since_on > 0) // don't blink red on 1st frame
) {
// use high mode unless prev_level was really low
pattern = 1 + (prev_level >= POST_OFF_VOLTAGE_BRIGHTNESS);
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.