Skip to content

Commit

Permalink
Fix type casting?
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed May 19, 2020
1 parent 3b82ad8 commit 635f6b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tmk_core/common/bootmagic.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void bootmagic(void) {
default_layer_set((layer_state_t)default_layer);
}
/* Also initialize layer state to trigger callback functions for layer_state */
layer_state_set_kb(layer_state);
layer_state_set_kb((layer_state_t)layer_state);

/* EE_HANDS handedness */
if (bootmagic_scan_keycode(BOOTMAGIC_KEY_EE_HANDS_LEFT)) {
Expand Down
2 changes: 1 addition & 1 deletion tmk_core/common/magic.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ void magic(void) {
default_layer_set((layer_state_t)default_layer);

/* Also initialize layer state to trigger callback functions for layer_state */
layer_state_set_kb(layer_state);
layer_state_set_kb((layer_state_t)layer_state);
}

0 comments on commit 635f6b6

Please sign in to comment.