diff options
| author | Selene ToyKeeper | 2017-09-26 16:50:13 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-26 16:50:13 -0600 |
| commit | da4033eeda5c71a75eb32471eb4c34b7e5d82890 (patch) | |
| tree | ea05c190e5ffbede095faff53d01516432986a22 /spaghetti-monster | |
| parent | Added dynamic underclocking to FSM, instead of doing it manually in Anduril. (diff) | |
| download | anduril-da4033eeda5c71a75eb32471eb4c34b7e5d82890.tar.gz anduril-da4033eeda5c71a75eb32471eb4c34b7e5d82890.tar.bz2 anduril-da4033eeda5c71a75eb32471eb4c34b7e5d82890.zip | |
Er, set the clock speed *before* going idle, not after. :)
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/anduril.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 |
