diff options
| -rw-r--r-- | spaghetti-monster/anduril/anduril.c | 3 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-main.c | 20 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-standby.h | 3 |
3 files changed, 1 insertions, 25 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index d15b5cb..b7c4421 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -329,9 +329,6 @@ uint8_t steady_state(EventPtr event, uint16_t arg) { if (!(arg & 7)) gradual_tick(); //if (!(arg & 3)) gradual_tick(); //gradual_tick(); - #ifdef USE_IDLE_MODE - // go_to_idle = 1; // use less power when nothing is happening - #endif return MISCHIEF_MANAGED; } #endif diff --git a/spaghetti-monster/fsm-main.c b/spaghetti-monster/fsm-main.c index a47a4bf..bc41cd6 100644 --- a/spaghetti-monster/fsm-main.c +++ b/spaghetti-monster/fsm-main.c @@ -39,8 +39,6 @@ ISR(TIMER1_COMPA_vect) { int main() { // Don't allow interrupts while booting cli(); - //WDT_off(); - //PCINT_off(); // configure PWM channels #if PWM_CHANNELS >= 1 @@ -72,13 +70,6 @@ int main() { PORTB = (1 << SWITCH_PIN); // e-switch is the only input PCMSK = (1 << SWITCH_PIN); // pin change interrupt uses this pin - //// configure sleep mode - //set_sleep_mode(SLEEP_MODE_PWR_DOWN); - - // Read config values and saved state - - // TODO: handle long press vs short press (or even medium press)? - #ifdef USE_DEBUG_BLINK //debug_blink(1); #endif @@ -133,17 +124,6 @@ int main() { standby_mode(); } - #ifdef USE_IDLE_MODE - /* - // enter idle mode if requested - // (works better if deferred like this) - if (go_to_idle) { - go_to_idle = 0; - idle_mode(); - } - */ - #endif - // give the recipe some time slices loop(); diff --git a/spaghetti-monster/fsm-standby.h b/spaghetti-monster/fsm-standby.h index 3a917fd..0b410fa 100644 --- a/spaghetti-monster/fsm-standby.h +++ b/spaghetti-monster/fsm-standby.h @@ -29,9 +29,8 @@ volatile uint8_t go_to_standby = 0; void sleep_until_eswitch_pressed(); #ifdef USE_IDLE_MODE -// deferred "idle" state trigger // stops processing until next click or timer tick -//volatile uint8_t go_to_idle = 0; +// (I think) void idle_mode(); #endif |
