Use get_highest_layer instead of biton32

Co-Authored-By: Drashna Jaelre <drashna@live.com>
This commit is contained in:
Richard Baptist 2019-10-02 08:46:12 +02:00 committed by Richard Baptist
parent bcdf91abe3
commit 78fc6b430b
No known key found for this signature in database
GPG Key ID: 115D8B1815981F35

View File

@ -133,7 +133,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
layer_state_t layer_state_set_user(layer_state_t state) {
switch (biton32(default_layer_state)) {
switch (get_highest_layer(default_layer_state)) {
case _COLEMAKDHM:
state = update_tri_layer_state(state, _NUM, _NAV, _UTIL);
break;