Commit Graph

4 Commits (e3bde44b876bbb0051923a3fdf668cd06b51b5ad)

Author SHA1 Message Date
Masao Hamanaka 63cfe8da23 Fix some bugs about USBHost common codes.
Find some bugs in USBHost common codes. Bugs as below.
- USBHostMouse.cpp
 - Memory destroy will occur when the size of interrupt transfer is larger than 4 bytes.

- USBHostMSD.cpp
 - Type declaration of vender dependent.
     U16 -> uint16_t

- USBHostSerial.cpp
  - connected() will not be "true".
  - Communication with USBSerial will not start.
2015-01-15 14:01:48 +09:00
0xc0170 081230ee9c spaces removal - USBHost 2014-05-29 15:16:53 +02:00
Adam Green 8281836df3 USBHost: Silence unused variable warnings.
I removed the initialization of some variables which were never used to
silence GCC warnings.

One of them had me removing the following line from
USBHostMouse::rxHandler():
    int len = int_in->getLengthTransferred();
The variable len is never used again in this method and it doesn't
appear that the int_in->getLengthTransferred() call has any side
effects which would require this extraneous call to remain in the code.
2013-08-29 21:07:43 -07:00
unknown 1c981f929a add USBHost library 2013-03-14 16:36:35 +00:00