HCoop
/
jackhill
/
qmk
/
firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4139de3
)
Improve VIRTSER performance (#7528)
0.7.130
author
xyzz
<1065521+xyzz@users.noreply.github.com>
Fri, 31 Jan 2020 00:30:41 +0000
(19:30 -0500)
committer
GitHub
<noreply@github.com>
Fri, 31 Jan 2020 00:30:41 +0000
(11:30 +1100)
tmk_core/protocol/lufa/lufa.c
patch
|
blob
|
blame
|
history
diff --git
a/tmk_core/protocol/lufa/lufa.c
b/tmk_core/protocol/lufa/lufa.c
index
7d325a9
..
db66a07
100644
(file)
--- a/
tmk_core/protocol/lufa/lufa.c
+++ b/
tmk_core/protocol/lufa/lufa.c
@@
-869,7
+869,7
@@
void virtser_recv(uint8_t c) {
void virtser_task(void) {
uint16_t count = CDC_Device_BytesReceived(&cdc_device);
uint8_t ch;
-
if (
count) {
+
for (; count; --
count) {
ch = CDC_Device_ReceiveByte(&cdc_device);
virtser_recv(ch);
}