aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-standby.c
diff options
context:
space:
mode:
authorGabriel Hart2022-04-11 09:29:31 -0500
committerGabriel Hart2022-04-11 09:29:31 -0500
commit4d558992d4cc6434ec3ee94d535cd4b61a92a128 (patch)
tree8ffc3723da4657518aa340dca5fdd7ef7fc8ad28 /spaghetti-monster/fsm-standby.c
parentTweak a few MT35Mini settings (diff)
parentrevert spurious change to version.h (diff)
downloadanduril-4d558992d4cc6434ec3ee94d535cd4b61a92a128.tar.gz
anduril-4d558992d4cc6434ec3ee94d535cd4b61a92a128.tar.bz2
anduril-4d558992d4cc6434ec3ee94d535cd4b61a92a128.zip
Merge from TK's main A2 branch thru Rev 647 which includes several patches for the Sofirn SP10 Pro after TK merge that branch in
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