Fix to HID device mode Class driver, so that new reports are compared against the old, and updated reports made within the idle period are sent immediately to the host.
This commit is contained in:
parent
ec079c71d8
commit
72932e2780
9 changed files with 30 additions and 32 deletions
|
@ -91,7 +91,7 @@ int main(void)
|
|||
for (;;)
|
||||
{
|
||||
CheckJoystickMovement();
|
||||
|
||||
|
||||
/* Must throw away unused bytes from the host, or it will lock up while waiting for the device */
|
||||
while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))
|
||||
CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue