aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-12-04 01:53:08 -0700
committerSelene ToyKeeper2019-12-04 01:53:08 -0700
commit480898878f845067b5e17bd49c25ad3e67b2e7b0 (patch)
treea74b258b935b368642c33f190a3ddc0354a01e3a
parentadded a FW3A build with the FET turned off completely (diff)
downloadanduril-480898878f845067b5e17bd49c25ad3e67b2e7b0.tar.gz
anduril-480898878f845067b5e17bd49c25ad3e67b2e7b0.tar.bz2
anduril-480898878f845067b5e17bd49c25ad3e67b2e7b0.zip
fixed compile errors to handle a couple USE_ flags better:
- beacon mode off (suggested by Agro) - tenclick shortcut on with thermal regulation off
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/anduril/anduril.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index 4a61da3..c89e5fe 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -688,7 +688,7 @@ uint8_t off_state(Event event, uint16_t arg) {
return MISCHIEF_MANAGED;
}
#endif // end 7 clicks
- #ifdef USE_TENCLICK_THERMAL_CONFIG
+ #if defined(USE_TENCLICK_THERMAL_CONFIG) && defined(USE_THERMAL_REGULATION)
// 10 clicks: thermal config mode
else if (event == EV_10clicks) {
push_state(thermal_config_state, 0);
@@ -1648,9 +1648,15 @@ uint8_t goodnight_state(Event event, uint16_t arg) {
set_state(off_state, 0);
return MISCHIEF_MANAGED;
}
- // 2 clicks: beacon mode
+ // 2 clicks: next mode
else if (event == EV_2clicks) {
+ #ifdef USE_BEACON_MODE
set_state(beacon_state, 0);
+ #elif defined(USE_SOS_MODE_IN_BLINKY_GROUP)
+ set_state(sos_state, 0);
+ #elif defined(USE_THERMAL_REGULATION)
+ set_state(tempcheck_state, 0);
+ #endif
return MISCHIEF_MANAGED;
}
// tick: step down (maybe) or off (maybe)
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.