diff options
| author | Selene ToyKeeper | 2019-12-04 01:53:08 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2019-12-04 01:53:08 -0700 |
| commit | 480898878f845067b5e17bd49c25ad3e67b2e7b0 (patch) | |
| tree | a74b258b935b368642c33f190a3ddc0354a01e3a | |
| parent | added a FW3A build with the FET turned off completely (diff) | |
| download | anduril-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.c | 10 |
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) |
