From 92c1b83ec31c3086e0e1346544dda182db082b8a Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 16 Mar 2023 13:27:22 -0400 Subject: [PATCH] this should be illegal --- firmware/console/binary/serial_can.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/console/binary/serial_can.cpp b/firmware/console/binary/serial_can.cpp index c5b91c653f..eed614ba09 100644 --- a/firmware/console/binary/serial_can.cpp +++ b/firmware/console/binary/serial_can.cpp @@ -404,6 +404,9 @@ msg_t canStreamFlushTx(sysinterval_t timeout) { return state.streamFlushTx(timeout); } + // np uses in/out parameter approach. Yes ChibiOS does same but still evil! + // in entry: number of data frames to receive + // on exit the number of frames actually received msg_t canStreamReceiveTimeout(size_t *np, uint8_t *rxbuf, sysinterval_t timeout) { return state.streamReceiveTimeout(np, rxbuf, timeout); }