From 717060ef8c018c95b5764163180e0fa61c0fb010 Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Sat, 5 Jun 2010 22:32:15 -0400 Subject: USB Serial read() fix: stupid, stupid mistake. --- wirish/usb_serial.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wirish') diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp index 9476e99..fe88d6e 100644 --- a/wirish/usb_serial.cpp +++ b/wirish/usb_serial.cpp @@ -65,7 +65,8 @@ uint32 USBSerial::read(void *buf, uint32 len) { uint8 USBSerial::read(void) { uint8 ch; - return usbReceiveBytes(&ch, 1); + usbReceiveBytes(&ch, 1); + return ch; } USBSerial SerialUSB; -- cgit v1.2.3