minor cosmetic use of reinterpret_cast.

This commit is contained in:
Rohit Grover 2014-11-28 10:57:56 +00:00
parent 584e149985
commit 5cd5f364ea
1 changed files with 1 additions and 1 deletions

View File

@ -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<uint8_t *>(&beaconPeriod), sizeof(uint16_t));
return;
} else {
beaconPeriod = *((uint16_t *)(params->data));