Bluefruit disconnect invoked in callback thread

This commit is contained in:
hathach committed 2017-07-11 12:43:02 +07:00
1 parent 4ff746a7f7
commit c8b774d1b7
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -527,7 +527,7 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
_conn_hdl = BLE_CONN_HANDLE_INVALID;
_bonded = false;
if ( _disconnect_cb ) _disconnect_cb(evt->evt.gap_evt.params.disconnected.reason);
if ( _disconnect_cb ) ada_callback(NULL, _disconnect_cb, evt->evt.gap_evt.params.disconnected.reason);
Advertising.start();
break;