aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-adc.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-01-24 18:27:44 -0700
committerSelene ToyKeeper2018-01-24 18:27:44 -0700
commit30b13cc13baba55ac1610ad471ca737a6c817683 (patch)
treea3893755b1a446b5d93b446eedeaebedd85a2768 /spaghetti-monster/fsm-adc.h
parentMade thermal adjustment speed change depending on how far it needs to go. (diff)
downloadanduril-30b13cc13baba55ac1610ad471ca737a6c817683.tar.gz
anduril-30b13cc13baba55ac1610ad471ca737a6c817683.tar.bz2
anduril-30b13cc13baba55ac1610ad471ca737a6c817683.zip
Work around issues related to ADC interrupt auto-triggering itself.
(was firing off 1000 times faster than desired, causing several issues) (now only executes when explicitly requested by the WDT)
Diffstat (limited to 'spaghetti-monster/fsm-adc.h')
-rw-r--r--spaghetti-monster/fsm-adc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-adc.h b/spaghetti-monster/fsm-adc.h
index b9462f7..5ffbb73 100644
--- a/spaghetti-monster/fsm-adc.h
+++ b/spaghetti-monster/fsm-adc.h
@@ -35,6 +35,7 @@
#define VOLTAGE_FUDGE_FACTOR 5
#endif
volatile uint8_t voltage;
+volatile uint8_t adcint_enable; // kludge, because adc auto-retrigger won't turn off
void low_voltage();
#ifdef USE_BATTCHECK
void battcheck();