diff options
| author | Selene ToyKeeper | 2017-10-21 06:46:07 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-10-21 06:46:07 -0600 |
| commit | 8d967e13f18cee2bc13faa502cfac0946ae2a0d9 (patch) | |
| tree | 70f63f4643403a6d423c46d5ebddf75a47449a8b /spaghetti-monster/fsm-main.c | |
| parent | Made DELAY_ZERO_TIME a per-MCU option; hopefully will sync to PWM better that... (diff) | |
| download | anduril-8d967e13f18cee2bc13faa502cfac0946ae2a0d9.tar.gz anduril-8d967e13f18cee2bc13faa502cfac0946ae2a0d9.tar.bz2 anduril-8d967e13f18cee2bc13faa502cfac0946ae2a0d9.zip | |
Delay un-setting go_to_standby until the last moment, in case set_level() wants to use it.
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-main.c b/spaghetti-monster/fsm-main.c index 5efcd4c..8f21846 100644 --- a/spaghetti-monster/fsm-main.c +++ b/spaghetti-monster/fsm-main.c @@ -110,7 +110,6 @@ int main() { // enter standby mode if requested // (works better if deferred like this) if (go_to_standby) { - go_to_standby = 0; #ifdef USE_RAMPING set_level(0); #else @@ -127,6 +126,7 @@ int main() { PWM4_LVL = 255; // inverted :( #endif #endif + go_to_standby = 0; standby_mode(); } |
