kkohase / usb-serial-for-android

Automatically exported from code.google.com/p/usb-serial-for-android
GNU Lesser General Public License v3.0
0 stars 0 forks source link

SerialInputOutputManager outputting zeroes to the device. #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Use the writeAsync method of SerialInputOutputManager for writing to the device.

What is the expected output? What do you see instead?
Expect to receive the source data on the device. Instead receiving zero all the 
time.

I figured the writeBuffer is not being rewinded before copying the data to 
outBuf.

Have attached a patch that fixes this for me.

Original issue reported on code.google.com by nanda.sa...@gmail.com on 17 Oct 2012 at 5:21

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks! Fixed.

Original comment by mike.wak...@gmail.com on 8 Dec 2012 at 1:47