From d75895586a1330f0b1a86fadfb10c9a544638a32 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 27 Dec 2020 02:39:32 +0800 Subject: [PATCH] bluetooth: Don't call BT_LE162HOST in bt_buf_get_le16 since BT_GETUINT16 alredy convert the value to the little endian Signed-off-by: Xiang Xiao --- wireless/bluetooth/bt_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireless/bluetooth/bt_buf.c b/wireless/bluetooth/bt_buf.c index a79fac8168..f39b2d9f01 100644 --- a/wireless/bluetooth/bt_buf.c +++ b/wireless/bluetooth/bt_buf.c @@ -639,7 +639,7 @@ uint16_t bt_buf_get_le16(FAR struct bt_buf_s * buf) value = BT_GETUINT16((FAR uint8_t *)buf->data); bt_buf_consume(buf, sizeof(value)); - return BT_LE162HOST(value); + return value; } /****************************************************************************