aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol/lufa/lufa.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.c')
-rw-r--r--tmk_core/protocol/lufa/lufa.c2
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) {
869void virtser_task(void) { 869void 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 }