Wilson Tang
/
HSP_RPC_GUI
Fork of the offical HSP_RPC_GUI firmware
Fork of MAXREFDES100 firmware for MAX32620HSP
Diff: HSP/Hsp_BLE/BluetoothLE/Characteristic.h
- Revision:
- 1:9490836294ea
- Parent:
- 0:e4a10ed6eb92
--- a/HSP/Hsp_BLE/BluetoothLE/Characteristic.h Tue Oct 25 15:22:11 2016 +0000 +++ b/HSP/Hsp_BLE/BluetoothLE/Characteristic.h Fri Apr 21 12:12:30 2017 -0500 @@ -77,7 +77,7 @@ uint8_t *getPayloadBytes(void) { return payload.bytes; } void copyDataWritten(const GattWriteCallbackParams *params) { - int i = 0; + unsigned int i = 0; while (i < params->len && i < sizeof(dataWritten)) { dataWritten[i] = params->data[i]; i++;