diff options
author | Perry Hung <iperry@alum.mit.edu> | 2010-06-05 22:32:15 -0400 |
---|---|---|
committer | Perry Hung <iperry@alum.mit.edu> | 2010-06-05 22:35:43 -0400 |
commit | 717060ef8c018c95b5764163180e0fa61c0fb010 (patch) | |
tree | b020f19c966e1b121b2b3684ff4b8be1d5bb5c73 /wirish | |
parent | 7ef5c1f749d25f9e3a03af7b7087b96e2046b489 (diff) | |
download | librambutan-717060ef8c018c95b5764163180e0fa61c0fb010.tar.gz librambutan-717060ef8c018c95b5764163180e0fa61c0fb010.zip |
USB Serial read() fix:
stupid, stupid mistake.
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/usb_serial.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |