diff options
Diffstat (limited to 'tmk_core/protocol')
-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 | } |