I don't know why this is happening.
Fork of BLE_API by
Diff: services/DFUService.h
- Revision:
- 277:1407d2f1ce3c
- Parent:
- 245:712e0719d7e9
- Child:
- 510:39612adfbf68
--- a/services/DFUService.h Thu Jan 22 09:59:43 2015 +0000 +++ b/services/DFUService.h Thu Jan 22 09:59:44 2015 +0000 @@ -56,8 +56,7 @@ ble(_ble), controlBytes(), packetBytes(), - controlPoint(DFUServiceControlCharacteristicUUID, controlBytes, SIZEOF_CONTROL_BYTES, SIZEOF_CONTROL_BYTES, - GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_WRITE | GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), + controlPoint(DFUServiceControlCharacteristicUUID, controlBytes, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY), packet(DFUServicePacketCharacteristicUUID, packetBytes, SIZEOF_PACKET_BYTES, SIZEOF_PACKET_BYTES, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_WRITE_WITHOUT_RESPONSE) { static bool serviceAdded = false; /* We should only ever need to add the DFU service once. */ @@ -120,7 +119,7 @@ /**< Writing to the control characteristic triggers the handover to dfu- * bootloader. At present, writing anything will do the trick--this needs * to be improved. */ - GattCharacteristic controlPoint; + WriteOnlyArrayGattCharacteristic<uint8_t, SIZEOF_CONTROL_BYTES> controlPoint; /**< The packet characteristic in this service doesn't do anything meaningful, but * is only a placeholder to mimic the corresponding characteristic in the