From f10c60eea767e04f3eda524e66b410127a5af34a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 14 Apr 2023 14:51:48 -0400 Subject: [PATCH] usb_canbus: Increase rx canbus packet buffer to 32 A buffer of only 8 canbus packets is only 64 bytes of data, which could be exceeded if the usb-to-canbus mcu gets busy doing other work. Increase the buffer to 32 packets. Signed-off-by: Kevin O'Connor --- src/generic/usb_canbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/usb_canbus.c b/src/generic/usb_canbus.c index 3cb4bdd0..b1023627 100644 --- a/src/generic/usb_canbus.c +++ b/src/generic/usb_canbus.c @@ -117,7 +117,7 @@ static struct usbcan_data { // Data from physical canbus interface uint32_t pull_pos, push_pos; - struct canbus_msg queue[8]; + struct canbus_msg queue[32]; } UsbCan; enum {