Skip to content

Commit

Permalink
Overhaul bootmagic logic to have single entrypoint (qmk#8532)
Browse files Browse the repository at this point in the history
* Relocate bootmagic logic to have single entrypoint

* Align init of layer state
  • Loading branch information
zvecr authored and AnthonyAmanse committed Apr 26, 2021
1 parent 45687ad commit 3da6b98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions quantum/bootmagic/bootmagic_full.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void bootmagic(void) {
default_layer |= (1 << 5);
} else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_6)) {
default_layer |= (1 << 6);
} else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_7)) {
} else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_7)) {ypoint (#8532):quantum/bootmagic/bootmagic_full.c
default_layer |= (1 << 7);
}
eeconfig_update_default_layer(default_layer);
Expand All @@ -142,6 +142,4 @@ void bootmagic(void) {
if (bootmagic_scan_keycode(BOOTMAGIC_KEY_EE_HANDS_LEFT)) {
eeconfig_update_handedness(true);
} else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_EE_HANDS_RIGHT)) {
eeconfig_update_handedness(false);
}
}

0 comments on commit 3da6b98

Please sign in to comment.