Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ ble_error_t GattServer::reset(ble::GattServer* server)

serviceCount = 0;
characteristicCount = 0;
default_services_added = false;

dataSentCallChain.clear();
dataWrittenCallChain.clear();
Expand Down