File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
connectivity/FEATURE_BLE/source/cordio/source Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,6 @@ ble_error_t BLEInstanceBase::shutdown()
171
171
return BLE_ERROR_INITIALIZATION_INCOMPLETE;
172
172
}
173
173
174
- initialization_status = NOT_INITIALIZED;
175
- _hci_driver->terminate ();
176
-
177
174
#if BLE_FEATURE_GATT_SERVER
178
175
getGattServer ().reset ();
179
176
#endif
@@ -185,6 +182,9 @@ ble_error_t BLEInstanceBase::shutdown()
185
182
getGap ().reset ();
186
183
_event_queue.clear ();
187
184
185
+ initialization_status = NOT_INITIALIZED;
186
+ _hci_driver->terminate ();
187
+
188
188
return BLE_ERROR_NONE;
189
189
}
190
190
Original file line number Diff line number Diff line change @@ -907,6 +907,7 @@ ble_error_t GattServer::reset(ble::GattServer* server)
907
907
908
908
serviceCount = 0 ;
909
909
characteristicCount = 0 ;
910
+ default_services_added = false ;
910
911
911
912
dataSentCallChain.clear ();
912
913
dataWrittenCallChain.clear ();
You can’t perform that action at this time.
0 commit comments