Browse Source

Fix XAP Endpoint to use reorderable define rather than stm-otg1 define

Drashna Jael're 1 month ago
parent
commit
79a82a16fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tmk_core/protocol/usb_descriptor.h

+ 1 - 1
tmk_core/protocol/usb_descriptor.h

@@ -299,7 +299,7 @@ enum usb_endpoints {
 
 #ifdef XAP_ENABLE
     XAP_IN_EPNUM = NEXT_EPNUM,
-#    if STM32_USB_USE_OTG1
+#    ifdef USB_ENDPOINTS_ARE_REORDERABLE
 #        define XAP_OUT_EPNUM XAP_IN_EPNUM
 #    else
     XAP_OUT_EPNUM = NEXT_EPNUM,