reset transport last and reset the default chars in gatt server

pull/13704/head
Paul Szczeanek 2020-10-02 16:14:20 +01:00
parent fbe04097c7
commit e9ac83a92c
2 changed files with 4 additions and 3 deletions

View File

@ -171,9 +171,6 @@ ble_error_t BLEInstanceBase::shutdown()
return BLE_ERROR_INITIALIZATION_INCOMPLETE;
}
initialization_status = NOT_INITIALIZED;
_hci_driver->terminate();
#if BLE_FEATURE_GATT_SERVER
getGattServer().reset();
#endif
@ -185,6 +182,9 @@ ble_error_t BLEInstanceBase::shutdown()
getGap().reset();
_event_queue.clear();
initialization_status = NOT_INITIALIZED;
_hci_driver->terminate();
return BLE_ERROR_NONE;
}

View File

@ -883,6 +883,7 @@ ble_error_t GattServer::reset(ble::GattServer* server)
serviceCount = 0;
characteristicCount = 0;
default_services_added = false;
dataSentCallChain.clear();
dataWrittenCallChain.clear();