diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2023-04-14 14:51:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2023-04-24 11:31:06 -0400 |
commit | f10c60eea767e04f3eda524e66b410127a5af34a (patch) | |
tree | 6c962c560373ee32dfbb27c10a7d8f6ae0cf167f | |
parent | 8b2074e068b661fcc91ba7d70fe239a4b08fa0e5 (diff) | |
download | kutter-f10c60eea767e04f3eda524e66b410127a5af34a.tar.gz kutter-f10c60eea767e04f3eda524e66b410127a5af34a.tar.xz kutter-f10c60eea767e04f3eda524e66b410127a5af34a.zip |
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 <kevin@koconnor.net>
-rw-r--r-- | src/generic/usb_canbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |