aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/usb_serial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/usb_serial.cpp')
-rw-r--r--wirish/usb_serial.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp
index a01900f..cfc6317 100644
--- a/wirish/usb_serial.cpp
+++ b/wirish/usb_serial.cpp
@@ -58,8 +58,7 @@ void USBSerial::end(void) {
}
void USBSerial::write(uint8 ch) {
- const uint8 buf[] = {ch};
- this->write(buf, 1);
+ this->write(&ch, 1);
}
void USBSerial::write(const char *str) {