diff --git a/source/nRF5xGattServer.cpp b/source/nRF5xGattServer.cpp index 70c0590..e0e009a 100644 --- a/source/nRF5xGattServer.cpp +++ b/source/nRF5xGattServer.cpp @@ -233,7 +233,7 @@ ble_error_t nRF5xGattServer::write(Gap::Handle_t connectionHandle, GattAttribute hvx_params.offset = 0; hvx_params.p_data = const_cast(buffer); hvx_params.p_len = &len; - + error_t error = (error_t) sd_ble_gatts_hvx(gapConnectionHandle, &hvx_params); if (error != ERROR_NONE) { switch (error) {