aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/usb_cdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/usb_cdc.c')
-rw-r--r--src/generic/usb_cdc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/generic/usb_cdc.c b/src/generic/usb_cdc.c
index 49bb483e..56a60fac 100644
--- a/src/generic/usb_cdc.c
+++ b/src/generic/usb_cdc.c
@@ -65,8 +65,7 @@ console_sendf(const struct command_encoder *ce, va_list args)
// Generate message
uint8_t *buf = &transmit_buf[tpos];
- uint_fast8_t msglen = command_encodef(buf, ce, args);
- command_add_frame(buf, msglen);
+ uint_fast8_t msglen = command_encode_and_frame(buf, ce, args);
// Start message transmit
transmit_pos = tpos + msglen;