diff options
Diffstat (limited to 'quantum/rgblight.c')
| -rw-r--r-- | quantum/rgblight.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 4f227794f..64123774c 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -613,7 +613,7 @@ void rgblight_sethsv_slave(uint8_t hue, uint8_t sat, uint8_t val) { rgblight_set | |||
| 613 | 613 | ||
| 614 | #ifdef RGBLIGHT_LAYERS | 614 | #ifdef RGBLIGHT_LAYERS |
| 615 | void rgblight_set_layer_state(uint8_t layer, bool enabled) { | 615 | void rgblight_set_layer_state(uint8_t layer, bool enabled) { |
| 616 | uint8_t mask = 1 << layer; | 616 | rgblight_layer_mask_t mask = 1 << layer; |
| 617 | if (enabled) { | 617 | if (enabled) { |
| 618 | rgblight_status.enabled_layer_mask |= mask; | 618 | rgblight_status.enabled_layer_mask |= mask; |
| 619 | } else { | 619 | } else { |
| @@ -627,7 +627,7 @@ void rgblight_set_layer_state(uint8_t layer, bool enabled) { | |||
| 627 | } | 627 | } |
| 628 | 628 | ||
| 629 | bool rgblight_get_layer_state(uint8_t layer) { | 629 | bool rgblight_get_layer_state(uint8_t layer) { |
| 630 | uint8_t mask = 1 << layer; | 630 | rgblight_layer_mask_t mask = 1 << layer; |
| 631 | return (rgblight_status.enabled_layer_mask & mask) != 0; | 631 | return (rgblight_status.enabled_layer_mask & mask) != 0; |
| 632 | } | 632 | } |
| 633 | 633 | ||
