Skip to content

Commit a042e5a

Browse files
committed
Simplify how PS3 printStatusString prints the string
1 parent 0378d35 commit a042e5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PS3BT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void PS3BT::printStatusString() {
201201
} else
202202
strcpy_P(statusOutput, PSTR("Error"));
203203

204-
USB_HOST_SERIAL.write((uint8_t*)statusOutput, strlen(statusOutput));
204+
USB_HOST_SERIAL.write(statusOutput);
205205
}
206206

207207
void PS3BT::Reset() {

PS3USB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void PS3USB::printStatusString() {
392392
} else
393393
strcpy_P(statusOutput, PSTR("Error"));
394394

395-
USB_HOST_SERIAL.write((uint8_t*)statusOutput, strlen(statusOutput));
395+
USB_HOST_SERIAL.write(statusOutput);
396396
}
397397

398398
/* Playstation Sixaxis Dualshock and Navigation Controller commands */

0 commit comments

Comments
 (0)