aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-standby.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-12-16 11:23:58 -0700
committerSelene ToyKeeper2021-12-16 11:23:58 -0700
commitc1e1313bd4fc33563ac42ec565a55a90f1c9f35a (patch)
tree3b5ab88695dc45fa39a5d532012cd188ebd4eecc /spaghetti-monster/fsm-standby.c
parentfixed SP10 ramp flickering properly, using double-buffered registers (diff)
parentfixed bug where tint-ramping could end up 1 brightness ramp step different th... (diff)
downloadanduril-c1e1313bd4fc33563ac42ec565a55a90f1c9f35a.tar.gz
anduril-c1e1313bd4fc33563ac42ec565a55a90f1c9f35a.tar.bz2
anduril-c1e1313bd4fc33563ac42ec565a55a90f1c9f35a.zip
merged anduril2 branch for upstream changes
Diffstat (limited to 'spaghetti-monster/fsm-standby.c')
-rw-r--r--spaghetti-monster/fsm-standby.c2
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