From da4033eeda5c71a75eb32471eb4c34b7e5d82890 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 26 Sep 2017 16:50:13 -0600 Subject: Er, set the clock speed *before* going idle, not after. :) --- spaghetti-monster/anduril/anduril.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'spaghetti-monster') diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index 6740e23..9751296 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -955,6 +955,10 @@ void loop() { StatePtr state = current_state; + #ifdef USE_DYNAMIC_UNDERCLOCKING + auto_clock_speed(); + #endif + if (0) {} #ifdef USE_IDLE_MODE @@ -966,9 +970,6 @@ void loop() { idle_mode(); } #endif - #ifdef USE_DYNAMIC_UNDERCLOCKING - auto_clock_speed(); - #endif if (state == strobe_state) { // party / tactical strobe -- cgit v1.2.3