diff options
| author | Selene ToyKeeper | 2020-03-13 18:06:27 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-03-13 18:06:27 -0600 |
| commit | 7110fdbae15c6303eb405705bf0b319fc1381a4f (patch) | |
| tree | d87c6088fdb7dc5d1b36a4bf15657938387c973c /spaghetti-monster/fsm-wdt.c | |
| parent | went back to slower clk/128 ADC timing (diff) | |
| download | anduril-7110fdbae15c6303eb405705bf0b319fc1381a4f.tar.gz anduril-7110fdbae15c6303eb405705bf0b319fc1381a4f.tar.bz2 anduril-7110fdbae15c6303eb405705bf0b319fc1381a4f.zip | |
tried to make thermal code a bit less twitchy...
it regulates really fast on D4, but once it's stable, the adjustments are too large
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 12aab7b..1d630a4 100644 --- a/spaghetti-monster/fsm-wdt.c +++ b/spaghetti-monster/fsm-wdt.c @@ -178,7 +178,7 @@ void WDT_inner() { #endif #if defined(USE_LVP) || defined(USE_THERMAL_REGULATION) - // start a new ADC measurement every 16 ticks + // enable the deferred ADC handler every 32 ticks adc_trigger ++; if (0 == (adc_trigger & 31)) { // in case we're in standby mode and the ADC is turned off |
