Browse Source

add more hook point

pull/5020/head
mtei 5 years ago
parent
commit
64592b06f3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      quantum/rgblight.c

+ 2
- 0
quantum/rgblight.c 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
}


Loading…
Cancel
Save