removing S132 v2.0.1 support

This commit is contained in:
hathach committed 2018-01-08 11:57:21 +07:00
1 parent 3259b3b2b9
commit d830129836
10 files changed
+17 -149

No files matched your search

+5 -9
View File
@@ -185,16 +185,12 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
if (rd_rsp->count)
{
#if SD_VER < 500
_adamsg.feed(rd_rsp->handle_value[0].p_value, rd_rsp->value_len);
#else
ble_gattc_handle_value_t hdl_value;
ble_gattc_handle_value_t hdl_value;
if ( ERROR_NONE == sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter(&evt->evt.gattc_evt, &hdl_value) )
{
_adamsg.feed(hdl_value.p_value, rd_rsp->value_len);
}
#endif
if ( ERROR_NONE == sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter(&evt->evt.gattc_evt, &hdl_value) )
{
_adamsg.feed(hdl_value.p_value, rd_rsp->value_len);
}
_adamsg.complete();
}