summaryrefslogtreecommitdiffstats
path: root/users/333fred/rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/333fred/rgb.c')
-rw-r--r--users/333fred/rgb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/333fred/rgb.c b/users/333fred/rgb.c
index d287143302..ae21702030 100644
--- a/users/333fred/rgb.c
+++ b/users/333fred/rgb.c
@@ -23,8 +23,8 @@
#include "quantum.h"
#include "333fred.h"
-void layer_state_set_rgb(uint32_t state) {
- switch (biton32(state)) {
+void layer_state_set_rgb(layer_state_t state) {
+ switch (get_highest_layer(state)) {
case BASE:
// purple
rgblight_sethsv_noeeprom(210, 255, 20);