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 <chengkai@xiaomi.com>
This commit is contained in:
chengkai 2024-03-25 14:30:24 +08:00 committed by Xiang Xiao
parent af843eb798
commit 65fdc5548e
1 changed files with 1 additions and 0 deletions

View File

@ -320,6 +320,7 @@ static uint8_t *bt_slip_slip_byte(FAR uint8_t *packet, FAR uint8_t byte)
packet[0] = SLIP_ESC; packet[0] = SLIP_ESC;
packet[1] = SLIP_ESC_ESC; packet[1] = SLIP_ESC_ESC;
offset = 2; offset = 2;
break;
default: default:
packet[0] = byte; packet[0] = byte;
break; break;