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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-12-27 02:39:32 +08:00 committed by Alin Jerpelea
parent b06067aa23
commit d75895586a

View File

@ -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;
}
/****************************************************************************