aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spaghetti-monster/fsm-main.c2
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();
}