aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/usb_serial.cpp
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-12-13 22:33:22 -0500
committerAJM <poslathian@poslathian.(none)>2010-12-13 22:33:22 -0500
commitef3fcf8b3ed17540a4a931525afee8168852c48c (patch)
tree6f3867e75a465c9a85abbdf775121b50549fe42d /wirish/usb_serial.cpp
parentf04ec27e416c20b38373f7868deaa9d39fff0025 (diff)
downloadlibrambutan-ef3fcf8b3ed17540a4a931525afee8168852c48c.tar.gz
librambutan-ef3fcf8b3ed17540a4a931525afee8168852c48c.zip
fixed broken build from usb_serial.cpp
oops
Diffstat (limited to 'wirish/usb_serial.cpp')
-rw-r--r--wirish/usb_serial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp
index d4a8148..e2cdee3 100644
--- a/wirish/usb_serial.cpp
+++ b/wirish/usb_serial.cpp
@@ -109,8 +109,8 @@ uint32 USBSerial::read(void *buf, uint32 len) {
uint32 bytes_in = 0;
while (len > 0) {
- uint32 new_bytes = usbReceiveBytes(&(uint8)buf[new_bytes], len);
- len -= newBytes;
+ uint32 new_bytes = usbReceiveBytes((uint8*)((uint8*)buf+bytes_in), len);
+ len -= new_bytes;
bytes_in += new_bytes;
}