aboutsummaryrefslogtreecommitdiff
path: root/fsm
diff options
context:
space:
mode:
Diffstat (limited to 'fsm')
-rw-r--r--fsm/ramping.c2
-rw-r--r--fsm/ramping.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fsm/ramping.c b/fsm/ramping.c
index 63ab399..743e619 100644
--- a/fsm/ramping.c
+++ b/fsm/ramping.c
@@ -58,7 +58,7 @@ inline void set_level_aux_rgb_leds(uint8_t level) {
void set_level(uint8_t level) {
#ifdef USE_RAMP_LEVEL_HARD_LIMIT
- if (level > ramp_level_hard_limit)
+ if (ramp_level_hard_limit && (level > ramp_level_hard_limit))
level = ramp_level_hard_limit;
#endif
diff --git a/fsm/ramping.h b/fsm/ramping.h
index 6fe87fe..f542bd2 100644
--- a/fsm/ramping.h
+++ b/fsm/ramping.h
@@ -11,7 +11,7 @@ uint8_t actual_level = 0;
// the level used before actual
uint8_t prev_level = 0;
#ifdef USE_RAMP_LEVEL_HARD_LIMIT
-uint8_t ramp_level_hard_limit = RAMP_SIZE;
+uint8_t ramp_level_hard_limit = 0;
#endif
void set_level(uint8_t level);