File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
connectivity/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -2863,7 +2863,7 @@ void Gap::on_advertising_set_started(const mbed::Span<const uint8_t>& handles)
2863
2863
_adv_started_from_refresh.clear (handle);
2864
2864
} else if (_event_handler) {
2865
2865
_event_handler->onAdvertisingStart (
2866
- AdvertisingStartEvent (LEGACY_ADVERTISING_HANDLE )
2866
+ AdvertisingStartEvent (handle )
2867
2867
);
2868
2868
}
2869
2869
}
@@ -3219,9 +3219,8 @@ ble_error_t Gap::addDeviceToPeriodicAdvertiserList(
3219
3219
return BLE_ERROR_NOT_IMPLEMENTED;
3220
3220
}
3221
3221
3222
- if (peerAddressType != peer_address_type_t ::PUBLIC ||
3223
- peerAddressType != peer_address_type_t ::RANDOM
3224
- ) {
3222
+ if ((peerAddressType != peer_address_type_t ::PUBLIC) &&
3223
+ (peerAddressType != peer_address_type_t ::RANDOM)) {
3225
3224
return BLE_ERROR_INVALID_PARAM;
3226
3225
}
3227
3226
@@ -3251,9 +3250,8 @@ ble_error_t Gap::removeDeviceFromPeriodicAdvertiserList(
3251
3250
return BLE_ERROR_NOT_IMPLEMENTED;
3252
3251
}
3253
3252
3254
- if (peerAddressType != peer_address_type_t ::PUBLIC ||
3255
- peerAddressType != peer_address_type_t ::RANDOM
3256
- ) {
3253
+ if ((peerAddressType != peer_address_type_t ::PUBLIC) &&
3254
+ (peerAddressType != peer_address_type_t ::RANDOM)) {
3257
3255
return BLE_ERROR_INVALID_PARAM;
3258
3256
}
3259
3257
You can’t perform that action at this time.
0 commit comments