We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a788c9 + bd5f437 commit 5e1d138Copy full SHA for 5e1d138
connectivity/FEATURE_BLE/source/generic/GapImpl.cpp
@@ -2120,10 +2120,14 @@ ble_error_t Gap::stopAdvertising(advertising_handle_t handle)
2120
}
2121
#endif // BLE_FEATURE_EXTENDED_ADVERTISING
2122
2123
- if (!_active_sets.get(handle) || _pending_sets.get(handle)) {
+ if (_pending_sets.get(handle)) {
2124
return BLE_STACK_BUSY;
2125
2126
2127
+ if (!_active_sets.get(handle)) {
2128
+ return BLE_ERROR_NONE;
2129
+ }
2130
+
2131
#if BLE_FEATURE_EXTENDED_ADVERTISING
2132
if (is_extended_advertising_available()) {
2133
status = _pal_gap.extended_advertising_enable(
0 commit comments