From a042e5a8497f1457b39e38113b8b6a84aa643bb0 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Fri, 7 Mar 2014 02:12:39 +0100 Subject: [PATCH] Simplify how PS3 printStatusString prints the string --- PS3BT.cpp | 2 +- PS3USB.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PS3BT.cpp b/PS3BT.cpp index 80b6dc3f..38d6c3dc 100644 --- a/PS3BT.cpp +++ b/PS3BT.cpp @@ -201,7 +201,7 @@ void PS3BT::printStatusString() { } else strcpy_P(statusOutput, PSTR("Error")); - USB_HOST_SERIAL.write((uint8_t*)statusOutput, strlen(statusOutput)); + USB_HOST_SERIAL.write(statusOutput); } void PS3BT::Reset() { diff --git a/PS3USB.cpp b/PS3USB.cpp index fa865495..7e6285a2 100644 --- a/PS3USB.cpp +++ b/PS3USB.cpp @@ -392,7 +392,7 @@ void PS3USB::printStatusString() { } else strcpy_P(statusOutput, PSTR("Error")); - USB_HOST_SERIAL.write((uint8_t*)statusOutput, strlen(statusOutput)); + USB_HOST_SERIAL.write(statusOutput); } /* Playstation Sixaxis Dualshock and Navigation Controller commands */