You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/17 10:09:50 UTC
(nuttx) 12/27: bluetooth: add slip SLIP_ESC case break
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 65fdc5548ef02e00d5ea29c1ee1494127be41dcf
Author: chengkai <ch...@xiaomi.com>
AuthorDate: Mon Mar 25 14:30:24 2024 +0800
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 <ch...@xiaomi.com>
---
drivers/wireless/bluetooth/bt_slip.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/wireless/bluetooth/bt_slip.c b/drivers/wireless/bluetooth/bt_slip.c
index f51a07963e..b88f064a89 100644
--- a/drivers/wireless/bluetooth/bt_slip.c
+++ b/drivers/wireless/bluetooth/bt_slip.c
@@ -320,6 +320,7 @@ static uint8_t *bt_slip_slip_byte(FAR uint8_t *packet, FAR uint8_t byte)
packet[0] = SLIP_ESC;
packet[1] = SLIP_ESC_ESC;
offset = 2;
+ break;
default:
packet[0] = byte;
break;