1
0
Fork 0
forked from forks/qmk_firmware

Add missing bracket for VIA brightness scaling (#17354)

This commit is contained in:
Dasky 2022-06-11 03:07:58 +01:00 committed by GitHub
parent 0fd08da806
commit 568924c76c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -491,7 +491,7 @@ void via_qmk_rgblight_set_value(uint8_t *data) {
uint8_t *value_data = &(data[1]); uint8_t *value_data = &(data[1]);
switch (*value_id) { switch (*value_id) {
case id_qmk_rgblight_brightness: { case id_qmk_rgblight_brightness: {
rgblight_sethsv_noeeprom(rgblight_get_hue(), rgblight_get_sat(), ((uint16_t)value_data[0] * RGBLIGHT_LIMIT_VAL) / UINT8_MAX; rgblight_sethsv_noeeprom(rgblight_get_hue(), rgblight_get_sat(), ((uint16_t)value_data[0] * RGBLIGHT_LIMIT_VAL) / UINT8_MAX);
break; break;
} }
case id_qmk_rgblight_effect: { case id_qmk_rgblight_effect: {