aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/fsm-ramping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h
index 8d5ed27..36cf89c 100644
--- a/spaghetti-monster/fsm-ramping.h
+++ b/spaghetti-monster/fsm-ramping.h
@@ -115,7 +115,7 @@ void gradual_tick();
#define GRADUAL_ADJUST_STACKED(TARGET,PWM,TOP) \
if ( ((PWM == 0) && (TARGET == TOP)) \
|| ((PWM == TOP) && (TARGET == 0))) \
- PWM = TOP; \
+ PWM = TARGET; \
else GRADUAL_ADJUST_SIMPLE(TARGET,PWM)
// tick the top layer of the stack