diff options
author | xyzz <1065521+xyzz@users.noreply.github.com> | 2020-01-30 19:30:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 11:30:41 +1100 |
commit | eb309be6f009a9f3923ea49cec3653b75ec47e69 (patch) | |
tree | 89a31127d96ccafc57708701801c452ccbc2c1d5 /tmk_core/protocol/lufa/lufa.c | |
parent | 4139de3cc9c56a157d78e1e418893d08e3f23bde (diff) | |
download | qmk_firmware-eb309be6f009a9f3923ea49cec3653b75ec47e69.tar.gz qmk_firmware-eb309be6f009a9f3923ea49cec3653b75ec47e69.zip |
Improve VIRTSER performance (#7528)
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.c')
-rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 7d325a9ba..db66a0722 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c | |||
@@ -869,7 +869,7 @@ void virtser_recv(uint8_t c) { | |||
869 | void virtser_task(void) { | 869 | void virtser_task(void) { |
870 | uint16_t count = CDC_Device_BytesReceived(&cdc_device); | 870 | uint16_t count = CDC_Device_BytesReceived(&cdc_device); |
871 | uint8_t ch; | 871 | uint8_t ch; |
872 | if (count) { | 872 | for (; count; --count) { |
873 | ch = CDC_Device_ReceiveByte(&cdc_device); | 873 | ch = CDC_Device_ReceiveByte(&cdc_device); |
874 | virtser_recv(ch); | 874 | virtser_recv(ch); |
875 | } | 875 | } |