Skip to content

Commit 65fdc55

Browse files
chengkai15xiaoxiang781216
authored andcommitted
bluetooth: add slip SLIP_ESC case break
H5 SLIP_ESC magic payload whould be encode with SLIP_ESC and SLIP_ESC_ESC Signed-off-by: chengkai <[email protected]>
1 parent af843eb commit 65fdc55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/wireless/bluetooth/bt_slip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ static uint8_t *bt_slip_slip_byte(FAR uint8_t *packet, FAR uint8_t byte)
320320
packet[0] = SLIP_ESC;
321321
packet[1] = SLIP_ESC_ESC;
322322
offset = 2;
323+
break;
323324
default:
324325
packet[0] = byte;
325326
break;

0 commit comments

Comments
 (0)