Skip to content
Permalink
Browse files

Merge pull request #126 from pacheco017/fix-kiss-iface-rx-mtu-check

interfaces/kiss: fix KISS interface MTU check on RX
  • Loading branch information...
johandc committed Apr 24, 2019
2 parents 5235fb4 + 5cb1dc6 commit 3c5ad0a3300294c414ce0e995fc63247d68dc099
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/interfaces/csp_if_kiss.c
@@ -101,7 +101,7 @@ void csp_kiss_rx(csp_iface_t * interface, uint8_t * buf, int len, void * pxTaskW
unsigned char inputbyte = *buf++;

/* If packet was too long */
if (driver->rx_length > interface->mtu) {
if (driver->rx_length > interface->mtu + CSP_HEADER_LENGTH) {
csp_log_warn("KISS RX overflow");
interface->rx_error++;
driver->rx_mode = KISS_MODE_NOT_STARTED;

0 comments on commit 3c5ad0a

Please sign in to comment.
You can’t perform that action at this time.