summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-08-07 02:18:03 -0700
committerGitHub <noreply@github.com>2022-08-07 02:18:03 -0700
commitac25109312a49b6b50e54d61430c959652307810 (patch)
tree476053357c529e9b135fcf329736d48f962ae4eb /quantum
parent93914142a34cae684454d16df9d0ac247bd2b88a (diff)
downloadqmk_firmware-ac25109312a49b6b50e54d61430c959652307810.tar.gz
qmk_firmware-ac25109312a49b6b50e54d61430c959652307810.zip
Always run pointing device init (#17936)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/pointing_device/pointing_device.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/quantum/pointing_device/pointing_device.c b/quantum/pointing_device/pointing_device.c
index 09f9e5efb7..505a7a6ffd 100644
--- a/quantum/pointing_device/pointing_device.c
+++ b/quantum/pointing_device/pointing_device.c
@@ -139,14 +139,15 @@ __attribute__((weak)) uint8_t pointing_device_handle_buttons(uint8_t buttons, bo
*/
__attribute__((weak)) void pointing_device_init(void) {
#if defined(SPLIT_POINTING_ENABLE)
- if (!(POINTING_DEVICE_THIS_SIDE)) {
- return;
- }
+ if ((POINTING_DEVICE_THIS_SIDE))
#endif
- pointing_device_driver.init();
+ {
+ pointing_device_driver.init();
#ifdef POINTING_DEVICE_MOTION_PIN
- setPinInputHigh(POINTING_DEVICE_MOTION_PIN);
+ setPinInputHigh(POINTING_DEVICE_MOTION_PIN);
#endif
+ }
+
pointing_device_init_kb();
pointing_device_init_user();
}