From d4a4c05a66e4c4ec8febdb0cab29c653938ad915 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 4 Aug 2016 16:52:08 +0300 Subject: [PATCH] core/advertising: Fix ManufaturerData dict type The expect type for manufacturer ID is uint16_t not uint8_t. --- src/advertising.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/advertising.c b/src/advertising.c index d2019deb6..79b6042f8 100644 --- a/src/advertising.c +++ b/src/advertising.c @@ -302,7 +302,7 @@ static bool parse_advertising_manufacturer_data(GDBusProxy *proxy, dbus_message_iter_recurse(&entry, &value); - if (dbus_message_iter_get_arg_type(&value) != DBUS_TYPE_BYTE) + if (dbus_message_iter_get_arg_type(&value) != DBUS_TYPE_UINT16) goto fail; dbus_message_iter_get_fixed_array(&value, &manuf_data, &len); -- 2.47.3