Fix binary msg read edge cases

This commit is contained in:
Allen Hill
2026-05-15 21:39:01 +00:00
parent b510eaaef8
commit e5797b598a
2 changed files with 14 additions and 1 deletions
+3 -1
View File
@@ -104,7 +104,9 @@ int main() {
uint8_t readBinary = 0;
uint8_t muteBus = 0;
uint8_t data_tmp[MAXMSGLEN];
// Binary-mode REPL includes the full wire preamble (broadcast + 2*addr +
// control + length), so size for the worst case.
uint8_t data_tmp[MAXMSGLEN + sizeof(AVCLAN_frame_t)];
uint8_t seqLen = 0; // current length written to data_tmp
uint8_t err = 0;