complete refactor AdaCallback to generic arguments
This commit is contained in:
1 parent
725cea11ff
commit
0101bcc8fc
7 files changed
+23
-64
No files matched your search
@@ -325,7 +325,7 @@ void BLEScanner::_eventHandler(ble_evt_t* evt)
|
||||
|
||||
ble_gap_evt_adv_report_t* adv_report = (ble_gap_evt_adv_report_t*) rtos_malloc( sizeof(ble_gap_evt_adv_report_t) );
|
||||
(*adv_report) = (*evt_report);
|
||||
if (_rx_cb) ada_callback_defer(adv_report, _rx_cb, adv_report);
|
||||
if (_rx_cb) ada_callback(adv_report, _rx_cb, adv_report);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -365,7 +365,7 @@ void BLEScanner::_eventHandler(ble_evt_t* evt)
|
||||
case BLE_GAP_EVT_TIMEOUT:
|
||||
if (evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_SCAN)
|
||||
{
|
||||
if (_stop_cb) ada_callback_defer(NULL, _stop_cb);
|
||||
if (_stop_cb) ada_callback(NULL, _stop_cb);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user