fix plover hid updates

This commit is contained in:
dnaq 2021-09-25 00:05:39 +02:00
parent 3c45934a1d
commit 7103b01bc7

View file

@ -237,17 +237,16 @@ void plover_hid_task(void) {
Endpoint_SelectEndpoint(PLOVER_HID_IN_EPNUM);
// Check to see if the host is ready to accept another packet
if (Endpoint_IsINReady()) {
// Write data
Endpoint_Write_Stream_LE(plover_hid_current_report, PLOVER_HID_SIMPLE_REPORT_SIZE, NULL);
// Finalize The stream transfer to send the last packet
Endpoint_ClearIN();
plover_hid_report_updated = false;
}
Endpoint_SelectEndpoint(ep);
plover_hid_report_updated = false;
}
#endif