From 257a1ca002b34b9537836b2088388c77abb374c4 Mon Sep 17 00:00:00 2001 From: mtei <2170248+mtei@users.noreply.github.com> Date: Thu, 31 Jan 2019 17:56:39 +0900 Subject: [PATCH] add more hook point --- quantum/rgblight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 97fd2a4af0..3fb1936c9b 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -510,11 +510,13 @@ void rgblight_decrease_val(void) { } void rgblight_increase_speed(void) { rgblight_config.speed = increment( rgblight_config.speed, 1, 0, 3 ); + rgblight_update_hook(NULL, &rgblight_status, false); eeconfig_update_rgblight(rgblight_config.raw);//EECONFIG needs to be increased to support this } void rgblight_decrease_speed(void) { rgblight_config.speed = decrement( rgblight_config.speed, 1, 0, 3 ); + rgblight_update_hook(NULL, &rgblight_status, false); eeconfig_update_rgblight(rgblight_config.raw);//EECONFIG needs to be increased to support this }