Norimasa Okamoto
/
GPSUSBHost
GPS USB dongle host
Revision 1:82eaa5761719, committed 2012-05-04
- Comitter:
- va009039
- Date:
- Fri May 04 06:58:31 2012 +0000
- Parent:
- 0:1c6af92fdc79
- Commit message:
Changed in this revision
usbgps.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1c6af92fdc79 -r 82eaa5761719 usbgps.cpp --- a/usbgps.cpp Mon Apr 30 14:24:46 2012 +0000 +++ b/usbgps.cpp Fri May 04 06:58:31 2012 +0000 @@ -74,7 +74,7 @@ USB_INT08U buf[64]; USB_INT32S rc = Host_ProcessTD(EDBulkIn, TD_IN, buf, sizeof(buf)); if (rc == OK) { - int len = 0; + int len = sizeof(buf); if (TDHead->CurrBufPtr) { len = TDHead->CurrBufPtr - (int)buf; }