aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic')
-rw-r--r--src/generic/usb_cdc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/generic/usb_cdc.c b/src/generic/usb_cdc.c
index 56a60fac..ab1869f8 100644
--- a/src/generic/usb_cdc.c
+++ b/src/generic/usb_cdc.c
@@ -93,9 +93,7 @@ usb_bulk_out_task(void)
return;
// Process any existing message blocks
uint_fast8_t rpos = receive_pos, pop_count;
- int_fast8_t ret = command_find_block(receive_buf, rpos, &pop_count);
- if (ret > 0)
- command_dispatch(receive_buf, pop_count);
+ int_fast8_t ret = command_find_and_dispatch(receive_buf, rpos, &pop_count);
if (ret) {
// Move buffer
uint_fast8_t needcopy = rpos - pop_count;