From 3f6a9fe82d892a1fca198169a7d3ed7bba58f902 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Wed, 8 Dec 2021 15:31:00 -0700 Subject: 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) --- spaghetti-monster/fsm-standby.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spaghetti-monster/fsm-standby.c') 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 -- cgit v1.2.3