Merge pull request #2637 from cschuhen/feature/fix_buf_size

Buffer is not big enough for FD frames.
This commit is contained in:
Dario Nieuwenhuis 2024-02-28 17:33:58 +00:00 committed by GitHub
commit 263d1b024c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ impl Registers {
let read_idx = self.regs.rxfs(fifonr).read().fgi();
let mailbox = self.rx_fifo_element(fifonr, read_idx as usize);
let mut buffer: [u8; 8] = [0; 8];
let mut buffer = [0u8; 64];
let maybe_header = extract_frame(mailbox, &mut buffer);
// Clear FIFO, reduces count and increments read buf