forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cantor: fix LT(layer, kc) do not work after waking up PC qmk#16406
Refactor of the orignal Philong's workaround. Instead of a user function in the keymap this commit applies the workarund at the keyboard level to make it available to every cantor user. Co-authored-by: Philong <philong@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2023 Alessio Caiazza (@nolith) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include "quantum.h" | ||
|
||
// Workaround for https://github.com/qmk/qmk_firmware/issues/16406 | ||
__attribute__ ((weak)) | ||
void suspend_wakeup_init_kb(void) { | ||
NVIC_SystemReset(); | ||
suspend_wakeup_init_user(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
SPLIT_KEYBOARD = yes | ||
SERIAL_DRIVER = usart | ||
|
||
SRC += cantor.c |