diff options
| author | Selene ToyKeeper | 2017-09-24 20:56:52 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-24 20:56:52 -0600 |
| commit | 08082855cbc7aa0a07f9ddfe6daa86e6c96d5b57 (patch) | |
| tree | ac9982d30edced7ecff8e9546fcc1894488b4515 /spaghetti-monster/fsm-main.c | |
| parent | Added idle_mode() for slightly lower power use without turning off any regula... (diff) | |
| download | anduril-08082855cbc7aa0a07f9ddfe6daa86e6c96d5b57.tar.gz anduril-08082855cbc7aa0a07f9ddfe6daa86e6c96d5b57.tar.bz2 anduril-08082855cbc7aa0a07f9ddfe6daa86e6c96d5b57.zip | |
Removed unused code from first idle_mode(); experiment.
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-main.c | 20 |
1 files changed, 0 insertions, 20 deletions
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(); |
