Increase ELM327_SIZE_RXBUF to support fat UART buffers
authornorly <ny-git@enpas.org>
Mon, 6 Jun 2022 13:06:00 +0000 (15:06 +0200)
committernorly <ny-git@enpas.org>
Mon, 6 Jun 2022 13:12:17 +0000 (15:12 +0200)
See: https://github.com/norly/elmcan/issues/8

There, a VM was used, and apparently buffers of over 256 bytes were
being piped in.

module/can327.c

index da81fa3af8828561ccd00cd2b0c3ce816b307516..7bb10e15e5606301fb086b46ab91034f567d0ba4 100644 (file)
@@ -57,7 +57,7 @@
 
 #define ELM327_NAPI_WEIGHT 4
 
-#define ELM327_SIZE_RXBUF 224
+#define ELM327_SIZE_RXBUF 992
 #define ELM327_SIZE_TXBUF 32
 
 #define ELM327_CAN_CONFIG_SEND_SFF           0x8000