aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-rw-r--r--wirish/usb_serial.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp
index fe88d6e..f186dea 100644
--- a/wirish/usb_serial.cpp
+++ b/wirish/usb_serial.cpp
@@ -36,11 +36,12 @@ USBSerial :: USBSerial(void) {
}
void USBSerial::write(uint8 ch) {
- usbSendBytes(&ch, 1);
+ usbSendBytes(&ch, 1);
}
void USBSerial::write(const char *str) {
uint32 len = strlen(str);
+
usbSendBytes((uint8*)str, len);
}