Fixing USB send rate.

- Only send USB events when something changes (rather than every ms)
This commit is contained in:
Jacob Alexander 2014-09-19 19:11:37 -07:00
parent 9b1e19017f
commit 97b514a9d4
3 changed files with 21 additions and 1 deletions

View file

@ -47,6 +47,7 @@ extern uint8_t USBKeys_Modifiers;
extern uint8_t USBKeys_Array[USB_MAX_KEY_SEND];
extern uint8_t USBKeys_Sent;
extern volatile uint8_t USBKeys_LEDs;
extern uint8_t USBKeys_Changed;
static const uint8_t USBKeys_MaxSize = USB_MAX_KEY_SEND;
extern volatile uint8_t USBKeys_Protocol; // 0 - Boot Mode, 1 - NKRO Mode