refactor AdaCallback

- use BLEGap connect_callback_t as  adacb_1arg_t
This commit is contained in:
hathach committed 2017-09-15 02:34:23 +07:00
1 parent 37d53cbe2a
commit a8496fcaf1
4 files changed
+3 -7

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ void BLECentral::_event_handler(ble_evt_t* evt)
if ( Bluefruit.Gap.getRole(evt_conn_hdl) == BLE_GAP_ROLE_CENTRAL)
{
// Invoke callback
if ( _connect_cb) ada_callback(NULL, _connect_cb, evt_conn_hdl);
if ( _connect_cb) ada_callback_defer(NULL, _connect_cb, evt_conn_hdl);
}
break;