1
0
Fork 0
forked from forks/qmk_firmware

add more hook point

This commit is contained in:
mtei 2019-01-31 17:56:39 +09:00
parent 450f661208
commit 64592b06f3

View file

@ -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
}