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 ec362c5 + b77bd22 commit 1489900Copy full SHA for 1489900
features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp
@@ -334,8 +334,12 @@ ble_error_t Gap::set_address_resolution(
334
}
335
336
ble_error_t Gap::read_phy(connection_handle_t connection) {
337
- DmReadPhy(connection);
338
- return BLE_ERROR_NONE;
+ if (is_feature_supported(ControllerSupportedFeatures_t::LE_2M_PHY)
+ || is_feature_supported(ControllerSupportedFeatures_t::LE_CODED_PHY)) {
339
+ DmReadPhy(connection);
340
+ return BLE_ERROR_NONE;
341
+ }
342
+ return BLE_ERROR_NOT_IMPLEMENTED;
343
344
345
ble_error_t Gap::set_preferred_phys(
0 commit comments