mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Altered the HID class driver to only try to construct at maximum one packet per USB frame, to reduce CPU usage.
This commit is contained in:
@@ -113,6 +113,7 @@
|
||||
struct
|
||||
{
|
||||
bool UsingReportProtocol; /**< Indicates if the HID interface is set to Boot or Report protocol mode. */
|
||||
uint16_t PrevFrameNum; /**< Frame number of the previous HID report packet opportunity. */
|
||||
uint16_t IdleCount; /**< Report idle period, in milliseconds, set by the host. */
|
||||
uint16_t IdleMSRemaining; /**< Total number of milliseconds remaining before the idle period elapsed - this
|
||||
* should be decremented by the user application if non-zero each millisecond. */
|
||||
|
||||
Reference in New Issue
Block a user