Minor cleanup

This commit is contained in:
microbuilder committed 2017-02-24 16:50:09 +01:00
1 parent 52d8654525
commit ba8a98d0f0
1 file changed
+4 -4
@@ -179,17 +179,17 @@ void cccd_callback(BLECharacteristic& chr, ble_gatts_evt_write_t* request)
(void) request;
// Display the raw request packet
Serial.println("CCCD Updated");
Serial.print("\tPayload :");
Serial.print("CCCD Updated: ");
Serial.printBuffer(request->data, request->len);
Serial.println("");
// Check the characteristic this CCCD update is associated with in case
// this handler is used for multiple CCCD records.
if (chr.uuid == hrmc.uuid) {
if (chr.notifyEnabled()) {
Serial.println("\tHeart Rate Measurement 'Notify' enabled");
Serial.println("Heart Rate Measurement 'Notify' enabled");
} else {
Serial.println("\tHeart Rate Measurement 'Notify' disabled");
Serial.println("Heart Rate Measurement 'Notify' disabled");
}
}
}