aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'spaghetti-monster/fsm-main.c')
-rw-r--r--spaghetti-monster/fsm-main.c20
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();