summaryrefslogtreecommitdiff
path: root/layouts/community/ergodox/swissgerman
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community/ergodox/swissgerman')
-rw-r--r--layouts/community/ergodox/swissgerman/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/community/ergodox/swissgerman/keymap.c b/layouts/community/ergodox/swissgerman/keymap.c
index 8ba9582934..8766d16ae0 100644
--- a/layouts/community/ergodox/swissgerman/keymap.c
+++ b/layouts/community/ergodox/swissgerman/keymap.c
@@ -222,7 +222,7 @@ void matrix_init_user(void) {
// Runs constantly in the background, in a loop.
void matrix_scan_user(void) {
- uint8_t layer = biton32(layer_state);
+ uint8_t layer = get_highest_layer(layer_state);
switch (layer) {
// TODO: Make this relevant to the ErgoDox EZ.