Merge pull request #2637 from cschuhen/feature/fix_buf_size
Buffer is not big enough for FD frames.
This commit is contained in:
commit
263d1b024c
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ impl Registers {
|
||||||
let read_idx = self.regs.rxfs(fifonr).read().fgi();
|
let read_idx = self.regs.rxfs(fifonr).read().fgi();
|
||||||
let mailbox = self.rx_fifo_element(fifonr, read_idx as usize);
|
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);
|
let maybe_header = extract_frame(mailbox, &mut buffer);
|
||||||
|
|
||||||
// Clear FIFO, reduces count and increments read buf
|
// Clear FIFO, reduces count and increments read buf
|
||||||
|
|
Loading…
Reference in a new issue