Compare commits
1 Commits
dev
...
fix/compil
| Author | SHA1 | Date |
|---|---|---|
|
|
41201c491d |
|
|
@ -56,12 +56,8 @@ void scan_record_parse(scan_record_t* record, const uint8_t* eir_data, uint8_t e
|
||||||
data_len = field_len - 1;
|
data_len = field_len - 1;
|
||||||
|
|
||||||
switch (eir_data[1]) {
|
switch (eir_data[1]) {
|
||||||
case BT_EIR_UUID16_INCOMPLETE:
|
|
||||||
case BT_EIR_UUID16_COMPLETE:
|
|
||||||
case BT_EIR_SVC_DATA_16:
|
case BT_EIR_SVC_DATA_16:
|
||||||
if (data_len >= 2) {
|
record_parse_uuid16(record, data, data_len);
|
||||||
record_parse_uuid16(record, data, data_len);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* TODO: handle other eir data */
|
/* TODO: handle other eir data */
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define BT_EIR_UUID16_INCOMPLETE 0x02 // 16-bit UUID, more available
|
|
||||||
#define BT_EIR_UUID16_COMPLETE 0x03 // 16-bit UUID, all listed
|
|
||||||
#define BT_EIR_SVC_DATA_16 0x16 // 16-bit UUID
|
#define BT_EIR_SVC_DATA_16 0x16 // 16-bit UUID
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue