refactor AdaCallback
remove BLEAdvertising stop_callback_t
This commit is contained in:
1 parent
8a175aa815
commit
da4125c910
4 files changed
+2
-9
No files matched your search
@@ -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(NULL, _stop_cb);
|
||||
if (_stop_cb) ada_callback_defer(NULL, _stop_cb);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user