File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ ble_error_t nRF5XGattClient::exchange_mtu(connection_handle_t connection)
185
185
ble_error_t nRF5XGattClient::get_mtu_size (
186
186
connection_handle_t connection_handle, uint16_t & mtu_size
187
187
) {
188
- #ifdef TARGET_SDK13
188
+ #if (NRF_SD_BLE_API_VERSION >= 3)
189
189
// FIXME: implement when MTU size can be configured; the mtu size must be
190
190
// stored locally when BLE_GATTC_EVT_EXCHANGE_MTU_RSP has been received
191
191
mtu_size = BLE_GATT_MTU_SIZE_DEFAULT;
@@ -1095,7 +1095,7 @@ struct nRF5XGattClient::DiscoverDescriptorsProcedure : RegularGattProcedure {
1095
1095
return response.count ;
1096
1096
}
1097
1097
1098
- #ifndef TARGET_SDK13
1098
+ #if (NRF_SD_BLE_API_VERSION < 3)
1099
1099
virtual information_data_t operator [](size_t i) const
1100
1100
{
1101
1101
information_data_t result = {
@@ -1113,7 +1113,7 @@ struct nRF5XGattClient::DiscoverDescriptorsProcedure : RegularGattProcedure {
1113
1113
1114
1114
return result;
1115
1115
}
1116
- #else /* TARGET_SDK13 */
1116
+ #else
1117
1117
virtual information_data_t operator [](size_t i) const
1118
1118
{
1119
1119
if (response.format == BLE_GATTC_ATTR_INFO_FORMAT_16BIT) {
@@ -1207,7 +1207,7 @@ struct nRF5XGattClient::ReadUsingCharacteristicUUIDProcedure : RegularGattProced
1207
1207
return convert_sd_error (err);
1208
1208
}
1209
1209
1210
- #ifdef TARGET_SDK13
1210
+ #if (NRF_SD_BLE_API_VERSION >= 3)
1211
1211
/* *
1212
1212
* Adapt ble_gattc_evt_char_val_by_uuid_read_rsp_t into AttReadByTypeResponse.
1213
1213
*/
You can’t perform that action at this time.
0 commit comments