Skip to content

Commit

Permalink
Move from biton32 to get_highest_layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Talljoe committed Sep 2, 2020
1 parent 73dec41 commit 5456c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keyboards/tmo50/keymaps/talljoe/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bool process_indicator_led_user(uint32_t state){
void matrix_scan_keymap(void) {
uint32_t lights = WHITE;

switch(biton32(layer_state))
switch(get_highest_layer(layer_state))
{
case _NAV:
lights |= YELLOW;
Expand All @@ -26,7 +26,7 @@ void matrix_scan_keymap(void) {
lights |= RED;
break;
default: {
uint32_t default_layer = biton32(default_layer_state);
uint8_t default_layer = get_highest_layer(default_layer_state);
lights = 0; // no white LED by default.
if(default_layer & 1)
lights |= YELLOW;
Expand Down

0 comments on commit 5456c60

Please sign in to comment.