aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spaghetti-monster/fsm-events.h2
-rw-r--r--spaghetti-monster/fsm-pcint.c3
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)
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.