From 5cd5f364ea4d257fdcecf2d151e306fa21570d7c Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Fri, 28 Nov 2014 10:57:56 +0000 Subject: [PATCH] minor cosmetic use of reinterpret_cast. --- services/URIBeacon2Service.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/URIBeacon2Service.h b/services/URIBeacon2Service.h index 69c75a1..de02161 100644 --- a/services/URIBeacon2Service.h +++ b/services/URIBeacon2Service.h @@ -316,7 +316,7 @@ private: } else if (params->charHandle == beaconPeriodChar.getValueAttribute().getHandle()) { if (lockedState) { /* When locked, the device isn't allowed to update the characteristic. */ /* Restore GATT database with previous value. */ - ble.updateCharacteristicValue(beaconPeriodChar.getValueAttribute().getHandle(), (uint8_t *)&beaconPeriod, 2 /* size */); + ble.updateCharacteristicValue(beaconPeriodChar.getValueAttribute().getHandle(), reinterpret_cast(&beaconPeriod), sizeof(uint16_t)); return; } else { beaconPeriod = *((uint16_t *)(params->data));