diff options
author | Ryan <fauxpark@gmail.com> | 2022-11-27 03:14:45 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 03:14:45 +1100 |
commit | 1e95f7be8f214c544bf99f415916a4a5f07a1e9b (patch) | |
tree | 99e7148ab4c464f40da8f0ee01e079843a26cf14 /tmk_core/protocol/chibios/usb_main.c | |
parent | a5a20cc792540c0de61f064bd8dafcdc5815d4cc (diff) |
Joystick feature improvements (#19052)
Diffstat (limited to 'tmk_core/protocol/chibios/usb_main.c')
-rw-r--r-- | tmk_core/protocol/chibios/usb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index fb3d575846..62a11faff7 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c @@ -183,7 +183,7 @@ static const USBEndpointConfig shared_ep_config = { }; #endif -#ifdef JOYSTICK_ENABLE +#if defined(JOYSTICK_ENABLE) && !defined(JOYSTICK_SHARED_EP) /* joystick endpoint state structure */ static USBInEndpointState joystick_ep_state; @@ -507,7 +507,7 @@ static void usb_event_cb(USBDriver *usbp, usbevent_t event) { #ifdef SHARED_EP_ENABLE usbInitEndpointI(usbp, SHARED_IN_EPNUM, &shared_ep_config); #endif -#ifdef JOYSTICK_ENABLE +#if defined(JOYSTICK_ENABLE) && !defined(JOYSTICK_SHARED_EP) usbInitEndpointI(usbp, JOYSTICK_IN_EPNUM, &joystick_ep_config); #endif #if defined(DIGITIZER_ENABLE) && !defined(DIGITIZER_SHARED_EP) |