diff options
| author | Selene ToyKeeper | 2019-11-14 18:00:54 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2019-11-14 18:00:54 -0700 |
| commit | ae082e6331d75c2cbe339290fbce4e79c2aa2ede (patch) | |
| tree | bec03d8c14d8036cb88bc61f4fb1beae9bff880e /spaghetti-monster/fsm-wdt.c | |
| parent | started refactoring ADC code to split voltage and temperature into their own ... (diff) | |
| download | anduril-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 'spaghetti-monster/fsm-wdt.c')
| -rw-r--r-- | spaghetti-monster/fsm-wdt.c | 2 |
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 |
