aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-08-06 16:52:11 -0600
committerSelene ToyKeeper2019-08-06 16:52:11 -0600
commit2813cc0130eb3bcc9d0dc1fca5135ee6720764c5 (patch)
tree3a9172b2581afa75d617324db9d5c44a672547fe
parentfixed party strobe on D1S v2, set better default aux LED modes, enabled aux L... (diff)
downloadanduril-2813cc0130eb3bcc9d0dc1fca5135ee6720764c5.tar.gz
anduril-2813cc0130eb3bcc9d0dc1fca5135ee6720764c5.tar.bz2
anduril-2813cc0130eb3bcc9d0dc1fca5135ee6720764c5.zip
turn off button LED when muggle mode turns off the main LED
(to reduce power use in standby)
-rw-r--r--spaghetti-monster/anduril/anduril.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index 8625946..f8492fc 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -1941,6 +1941,9 @@ uint8_t muggle_state(Event event, uint16_t arg) {
// turn off, but don't go to the main "off" state
if (muggle_off_mode) {
if (arg > TICKS_PER_SECOND*1) { // sleep after 1 second
+ #ifdef USE_AUX_RGB_LEDS_WHILE_ON
+ rgb_led_set(0);
+ #endif
go_to_standby = 1; // sleep while light is off
}
}