aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-06-05 22:32:15 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-06-05 22:35:43 -0400
commit717060ef8c018c95b5764163180e0fa61c0fb010 (patch)
treeb020f19c966e1b121b2b3684ff4b8be1d5bb5c73
parent7ef5c1f749d25f9e3a03af7b7087b96e2046b489 (diff)
downloadlibrambutan-717060ef8c018c95b5764163180e0fa61c0fb010.tar.gz
librambutan-717060ef8c018c95b5764163180e0fa61c0fb010.zip
USB Serial read() fix:
stupid, stupid mistake.
-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 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;