aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr
diff options
context:
space:
mode:
Diffstat (limited to 'src/avr')
-rw-r--r--src/avr/usbserial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/avr/usbserial.c b/src/avr/usbserial.c
index 6dbe4f0d..fe378227 100644
--- a/src/avr/usbserial.c
+++ b/src/avr/usbserial.c
@@ -65,8 +65,7 @@ console_sendf(const struct command_encoder *ce, va_list args)
{
// Generate message
static uint8_t buf[MESSAGE_MAX];
- uint8_t msglen = command_encodef(buf, ce, args);
- command_add_frame(buf, msglen);
+ uint8_t msglen = command_encode_and_frame(buf, ce, args);
// Transmit message
usb_serial_write((void*)buf, msglen);