aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index ab218b8c5..cc49cdf63 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -46,6 +46,12 @@ bool rgblight_timer_enabled = false;
46void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1) { 46void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1) {
47 uint8_t r = 0, g = 0, b = 0, base, color; 47 uint8_t r = 0, g = 0, b = 0, base, color;
48 48
49 #ifdef RGBLIGHT_LIMIT_VAL
50 if (val > RGBLIGHT_LIMIT_VAL) {
51 val=RGBLIGHT_LIMIT_VAL; // limit the val
52 }
53 #endif
54
49 if (sat == 0) { // Acromatic color (gray). Hue doesn't mind. 55 if (sat == 0) { // Acromatic color (gray). Hue doesn't mind.
50 r = val; 56 r = val;
51 g = val; 57 g = val;