aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-wdt.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-11-14 18:00:54 -0700
committerSelene ToyKeeper2019-11-14 18:00:54 -0700
commitae082e6331d75c2cbe339290fbce4e79c2aa2ede (patch)
treebec03d8c14d8036cb88bc61f4fb1beae9bff880e /spaghetti-monster/fsm-wdt.c
parentstarted refactoring ADC code to split voltage and temperature into their own ... (diff)
downloadanduril-ae082e6331d75c2cbe339290fbce4e79c2aa2ede.tar.gz
anduril-ae082e6331d75c2cbe339290fbce4e79c2aa2ede.tar.bz2
anduril-ae082e6331d75c2cbe339290fbce4e79c2aa2ede.zip
fixed ADC code; measures and behaves correctly now, and is easier to read...
... but factory reset's auto-calibrate still doesn't get the right values for some reason (manual calibration works, but not auto)
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/fsm-wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-wdt.c b/spaghetti-monster/fsm-wdt.c
index 3cb7d86..beab1a2 100644
--- a/spaghetti-monster/fsm-wdt.c
+++ b/spaghetti-monster/fsm-wdt.c
@@ -185,7 +185,7 @@ void WDT_inner() {
if (go_to_standby) ADC_on();
#endif
ADC_start_measurement();
- irq_adc = 0;
+ irq_adc_stable = 0;
adcint_enable = 1;
}
#endif