diff options
| author | Selene ToyKeeper | 2021-12-08 15:31:00 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-12-08 15:31:00 -0700 |
| commit | 3f6a9fe82d892a1fca198169a7d3ed7bba58f902 (patch) | |
| tree | d03923dd8133400648f940c35d42eb6bac72ca92 /spaghetti-monster/fsm-standby.c | |
| parent | fixed Ramp 3H with Anduril 2 style turbo (diff) | |
| download | anduril-3f6a9fe82d892a1fca198169a7d3ed7bba58f902.tar.gz anduril-3f6a9fe82d892a1fca198169a7d3ed7bba58f902.tar.bz2 anduril-3f6a9fe82d892a1fca198169a7d3ed7bba58f902.zip | |
added a compile option for USE_LOWPASS_WHILE_ASLEEP,
but it doesn't actually fix the issue I was hoping it'd fix,
so it's disabled by default
(when the battery is right on a threshold between colors for aux LED "voltage" mode,
it can bounce between colors until the cell isn't on the boundary any more...
but a simple lowpass doesn't really help)
(but I also didn't want to throw out the code, in case it's useful later
as a reference for a more effective solution)
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-standby.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-standby.c b/spaghetti-monster/fsm-standby.c index c450bca..0ae6a2f 100644 --- a/spaghetti-monster/fsm-standby.c +++ b/spaghetti-monster/fsm-standby.c @@ -73,7 +73,9 @@ void sleep_until_eswitch_pressed() go_to_standby = 0; } if (irq_adc) { // ADC done measuring + #ifndef USE_LOWPASS_WHILE_ASLEEP adc_reset = 1; // don't lowpass while asleep + #endif adc_deferred_enable = 1; adc_deferred(); //ADC_off(); // takes care of itself |
