aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-05-14 16:20:33 -0600
committerSelene ToyKeeper2020-05-14 16:20:33 -0600
commit11e2778dabb5ff6fa12475c752044c7ff35cf94c (patch)
tree39d2607c3d4cfdea3fc98c4ce3cab88ee2bb9b02 /spaghetti-monster
parentremoved unused TEMP_CHANNEL thing from FSM-related code (diff)
downloadanduril-11e2778dabb5ff6fa12475c752044c7ff35cf94c.tar.gz
anduril-11e2778dabb5ff6fa12475c752044c7ff35cf94c.tar.bz2
anduril-11e2778dabb5ff6fa12475c752044c7ff35cf94c.zip
fixed build when USE_GOODNIGHT_MODE not enabled
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/anduril.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index 8a9584e..a23b2e1 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -1593,11 +1593,25 @@ uint8_t battcheck_state(Event event, uint16_t arg) {
set_state(off_state, 0);
return MISCHIEF_MANAGED;
}
+ #ifdef USE_GOODNIGHT_MODE
// 2 clicks: goodnight mode
else if (event == EV_2clicks) {
set_state(goodnight_state, 0);
return MISCHIEF_MANAGED;
}
+ #elif defined(USE_BEACON_MODE)
+ // 2 clicks: beacon mode
+ else if (event == EV_2clicks) {
+ set_state(beacon_state, 0);
+ return MISCHIEF_MANAGED;
+ }
+ #elif defined(USE_THERMAL_REGULATION)
+ // 2 clicks: tempcheck mode
+ else if (event == EV_2clicks) {
+ set_state(tempcheck_state, 0);
+ return MISCHIEF_MANAGED;
+ }
+ #endif
return EVENT_NOT_HANDLED;
}
#endif
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.