Skip to content

Commit

Permalink
drivers/slipdev: don't append 0-byte to stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Feb 2, 2024
1 parent 8753ad6 commit ae3ae3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/slipdev/slipdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae3ae3d

Please sign in to comment.