From ef3fcf8b3ed17540a4a931525afee8168852c48c Mon Sep 17 00:00:00 2001 From: AJM Date: Mon, 13 Dec 2010 22:33:22 -0500 Subject: fixed broken build from usb_serial.cpp oops --- wirish/usb_serial.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3