refactor AdaCallback

remove BLEAdvertising stop_callback_t
This commit is contained in:
hathach committed 2017-09-15 02:15:59 +07:00
1 parent 8a175aa815
commit da4125c910
4 files changed
+2 -9

No files matched your search

+1 -1
View File
@@ -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;