This commit is contained in:
hathach committed 2017-07-26 12:01:24 +07:00
1 parent 8add8a37b9
commit fdc0547f3e
5 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -264,7 +264,7 @@ void BLEScanner::_eventHandler(ble_evt_t* evt)
if ( _filter_msd_en )
{
uint16_t id;
if ( !(parseReportByType(evt_report, BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA, &id, 2) && (id == _filter_msd_id)) ) break;
if ( !(parseReportByType(evt_report, BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA, (uint8_t*)&id, 2) && (id == _filter_msd_id)) ) break;
}
ble_gap_evt_adv_report_t* adv_report = (ble_gap_evt_adv_report_t*) rtos_malloc( sizeof(ble_gap_evt_adv_report_t) );