diff options
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-events.h | 2 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-pcint.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-events.h b/spaghetti-monster/fsm-events.h index 28f1b10..2721303 100644 --- a/spaghetti-monster/fsm-events.h +++ b/spaghetti-monster/fsm-events.h @@ -61,10 +61,8 @@ static volatile uint16_t ticks_since_last_event = 0; #define A_HOLD 6 #define A_RELEASE 7 #define A_RELEASE_TIMEOUT 8 -// TODO: add events for over/under-heat conditions (with parameter for severity) #define A_OVERHEATING 9 #define A_UNDERHEATING 10 -// TODO: add events for low voltage conditions #define A_VOLTAGE_LOW 11 //#define A_VOLTAGE_CRITICAL 12 #define A_DEBUG 255 // test event for debugging diff --git a/spaghetti-monster/fsm-pcint.c b/spaghetti-monster/fsm-pcint.c index 722cb88..a79572d 100644 --- a/spaghetti-monster/fsm-pcint.c +++ b/spaghetti-monster/fsm-pcint.c @@ -54,6 +54,8 @@ inline void PCINT_off() { } //void button_change_interrupt() { +EMPTY_INTERRUPT(PCINT0_vect); +/* ISR(PCINT0_vect) { //DEBUG_FLASH; @@ -65,6 +67,7 @@ ISR(PCINT0_vect) { // PCINT_inner(button_is_pressed()); } +*/ // should only be called from PCINT and/or WDT // (is a separate function to reduce code duplication) |
