From 1d8290555529a08de4a4ddb4524f6c7a14e53f80 Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Fri, 8 Aug 2014 13:16:22 +0000 Subject: [PATCH] corrected HCI_EVENT_INQUIRY_RESULT and HCI_EVENT_INQUIRY_RESULT_WITH_RSSI handling --- example/inquiry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/inquiry.c b/example/inquiry.c index 17d2af502..d31ac1d22 100644 --- a/example/inquiry.c +++ b/example/inquiry.c @@ -149,7 +149,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe int offset = 3; for (i=0; i= 0) continue; // already in our list memcpy(devices[deviceCount].address, addr, 6); @@ -169,7 +169,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe devices[deviceCount].classOfDevice = READ_BT_24(packet, offset); offset += 3; devices[deviceCount].clockOffset = READ_BT_16(packet, offset) & 0x7fff; - offset += 2 + offset += 2; devices[deviceCount].rssi = packet[offset]; offset += 1; }