From ae3ae3d2582f842a795d8697375c88e2c84bfc16 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 2 Feb 2024 10:46:36 +0100 Subject: [PATCH] drivers/slipdev: don't append 0-byte to stdin --- drivers/slipdev/slipdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/slipdev/slipdev.c b/drivers/slipdev/slipdev.c index 59992a0abca1b..333f363860900 100644 --- a/drivers/slipdev/slipdev.c +++ b/drivers/slipdev/slipdev.c @@ -62,8 +62,7 @@ static void _slip_rx_cb(void *arg, uint8_t byte) break; case SLIPDEV_END: dev->state = SLIPDEV_STATE_NONE; - byte = 0; - /* fall-through */ + break; default: isrpipe_write_one(&stdin_isrpipe, byte); break;