mirror of
https://github.com/thelsing/knx.git
synced 2025-08-17 13:47:28 +02:00
save work
This commit is contained in:
parent
619c6383d2
commit
05716b2d80
@ -245,7 +245,7 @@ void sendKnxTunnelHidReport(uint8_t* data, uint16_t length)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Serial1.print("TX HID report: len: ");
|
Serial1.print("TX HID report: len: ");
|
||||||
Serial1.println(buffer[2], DEC);
|
Serial1.println(buffer[2] + HID_HEADER_SIZE, DEC);
|
||||||
|
|
||||||
for (int i = 0; i < (buffer[2] + HID_HEADER_SIZE); i++)
|
for (int i = 0; i < (buffer[2] + HID_HEADER_SIZE); i++)
|
||||||
{
|
{
|
||||||
@ -256,6 +256,7 @@ void sendKnxTunnelHidReport(uint8_t* data, uint16_t length)
|
|||||||
}
|
}
|
||||||
Serial1.println("");
|
Serial1.println("");
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// We do not use reportId of the sendReport()-API here but instead provide it in the first byte of the buffer
|
// We do not use reportId of the sendReport()-API here but instead provide it in the first byte of the buffer
|
||||||
usb_hid.sendReport(0, buffer, MAX_EP_SIZE);
|
usb_hid.sendReport(0, buffer, MAX_EP_SIZE);
|
||||||
}
|
}
|
||||||
@ -327,7 +328,8 @@ void UsbDataLinkLayer::loop()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isTxQueueEmpty())
|
// Make sure that the USB HW is also ready to send another report
|
||||||
|
if (!isTxQueueEmpty() && usb_hid.ready())
|
||||||
{
|
{
|
||||||
uint8_t* buffer;
|
uint8_t* buffer;
|
||||||
uint16_t length;
|
uint16_t length;
|
||||||
|
Loading…
Reference in New Issue
Block a user