From b73be32eeb09b3a1139946fc47b921751144762b Mon Sep 17 00:00:00 2001 From: Martin Woolley Date: Thu, 1 Sep 2016 06:04:01 +0100 Subject: [PATCH] removed serial debug output --- source/bluetooth/MicroBitIOPinService.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/bluetooth/MicroBitIOPinService.cpp b/source/bluetooth/MicroBitIOPinService.cpp index 5c616f1..765cf0f 100644 --- a/source/bluetooth/MicroBitIOPinService.cpp +++ b/source/bluetooth/MicroBitIOPinService.cpp @@ -134,8 +134,6 @@ int MicroBitIOPinService::isOutput(int i) */ void MicroBitIOPinService::onDataWritten(const GattWriteCallbackParams *params) { - SERIAL_DEBUG->printf("params->len: %d",params->len); - // Check for writes to the IO configuration characteristic if (params->handle == ioPinServiceIOCharacteristicHandle && params->len >= sizeof(ioPinServiceIOCharacteristicBuffer)) { @@ -188,7 +186,6 @@ void MicroBitIOPinService::onDataWritten(const GattWriteCallbackParams *params) //validate - len must be a multiple of 7 and greater than 0 if (len == 0) { - SERIAL_DEBUG->printf("ERROR - zero length PWM Control field: %d",len); return; } @@ -204,7 +201,6 @@ void MicroBitIOPinService::onDataWritten(const GattWriteCallbackParams *params) } } else { // there's no way to return an error response via the current mbed BLE API :-( See https://github.com/ARMmbed/ble/issues/181 - SERIAL_DEBUG->printf("ERROR - invalid PWM Control field length: %d",len); return; } }