diff options
author | Drashna Jaelre <drashna@live.com> | 2022-07-21 10:16:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 10:16:44 -0700 |
commit | 5f32690cba8789c1ac98e71cb8ae8a4b6a5ee2d2 (patch) | |
tree | 6119a329b5f46e2b6308e6c846b369abf56e628f /quantum | |
parent | 5c907326221d0b7de00daf11b0560e10a1e73aaf (diff) | |
download | qmk_firmware-5f32690cba8789c1ac98e71cb8ae8a4b6a5ee2d2.tar.gz qmk_firmware-5f32690cba8789c1ac98e71cb8ae8a4b6a5ee2d2.zip |
Move Pointing Device Initialization (#17740)
Move Pointing Device Initialization to after Split Post Initialization
If both pointing device and split is enabled, the pointing device init needs to be called after the split post init, otherwise the connection (serial/etc) isn't initialized yet, and any commands that need to send data over (such as calling the set cpi command) never get sent over.
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/keyboard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c index 8273299a9a..2364e3167b 100644 --- a/quantum/keyboard.c +++ b/quantum/keyboard.c @@ -384,9 +384,6 @@ void keyboard_init(void) { #ifdef STENO_ENABLE_ALL steno_init(); #endif -#ifdef POINTING_DEVICE_ENABLE - pointing_device_init(); -#endif #if defined(NKRO_ENABLE) && defined(FORCE_NKRO) keymap_config.nkro = 1; eeconfig_update_keymap(keymap_config.raw); @@ -403,6 +400,10 @@ void keyboard_init(void) { #ifdef SPLIT_KEYBOARD split_post_init(); #endif +#ifdef POINTING_DEVICE_ENABLE + // init after split init + pointing_device_init(); +#endif #if defined(DEBUG_MATRIX_SCAN_RATE) && defined(CONSOLE_ENABLE) debug_enable = true; |