From 64592b06f3bcdaac47c59f922018a273bef76776 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 5876f8ef5fc..a588aa1695e 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -467,11 +467,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 }