mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-05 21:52:10 +01:00
Fix from PT for OSX/Windows F4 USB HID to send the full report size even if not
all used.
This commit is contained in:
parent
e2939dae2a
commit
72a93dbae5
@ -198,12 +198,12 @@ static bool PIOS_USB_HID_SendReport(struct pios_usb_hid_dev * usb_hid_dev)
|
|||||||
#ifdef PIOS_USB_BOARD_BL_HID_HAS_NO_LENGTH_BYTE
|
#ifdef PIOS_USB_BOARD_BL_HID_HAS_NO_LENGTH_BYTE
|
||||||
PIOS_USBHOOK_EndpointTx(usb_hid_dev->cfg->data_tx_ep,
|
PIOS_USBHOOK_EndpointTx(usb_hid_dev->cfg->data_tx_ep,
|
||||||
usb_hid_dev->tx_packet_buffer,
|
usb_hid_dev->tx_packet_buffer,
|
||||||
bytes_to_tx + 1);
|
sizeof(usb_hid_dev->tx_packet_buffer));
|
||||||
#else
|
#else
|
||||||
usb_hid_dev->tx_packet_buffer[1] = bytes_to_tx;
|
usb_hid_dev->tx_packet_buffer[1] = bytes_to_tx;
|
||||||
PIOS_USBHOOK_EndpointTx(usb_hid_dev->cfg->data_tx_ep,
|
PIOS_USBHOOK_EndpointTx(usb_hid_dev->cfg->data_tx_ep,
|
||||||
usb_hid_dev->tx_packet_buffer,
|
usb_hid_dev->tx_packet_buffer,
|
||||||
bytes_to_tx + 2);
|
sizeof(usb_hid_dev->tx_packet_buffer));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PIOS_INCLUDE_FREERTOS)
|
#if defined(PIOS_INCLUDE_FREERTOS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user