diff options
| author | Selene ToyKeeper | 2018-01-24 18:27:44 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-01-24 18:27:44 -0700 |
| commit | 30b13cc13baba55ac1610ad471ca737a6c817683 (patch) | |
| tree | a3893755b1a446b5d93b446eedeaebedd85a2768 /spaghetti-monster/fsm-adc.h | |
| parent | Made thermal adjustment speed change depending on how far it needs to go. (diff) | |
| download | anduril-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.h | 1 |
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(); |
