From 77d72d49b26577e05f9b431a65365eec13c9f8bc Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Wed, 8 Aug 2012 18:00:02 +0200 Subject: [PATCH] print error code as hex --- PS3BT.cpp | 2 +- RFCOMM.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PS3BT.cpp b/PS3BT.cpp index fd58d271..994b639e 100644 --- a/PS3BT.cpp +++ b/PS3BT.cpp @@ -311,7 +311,7 @@ FailUnknownDevice: Fail: #ifdef DEBUG Notify(PSTR("\r\nPS3 Init Failed, error code: ")); - Serial.print(rcode); + Serial.print(rcode,HEX); #endif Release(); return rcode; diff --git a/RFCOMM.cpp b/RFCOMM.cpp index fa63a778..e02b4a21 100644 --- a/RFCOMM.cpp +++ b/RFCOMM.cpp @@ -247,7 +247,7 @@ FailUnknownDevice: Fail: #ifdef DEBUG Notify(PSTR("\r\nBTD Init Failed, error code: ")); - Serial.print(rcode); + Serial.print(rcode,HEX); #endif Release(); return rcode;