hkust-smartcar / libsccc

Kinetis K60/KL26 peripheral and component library for the HKUST SmartCar Team
http://robotics.ust.hk/
GNU Lesser General Public License v3.0
6 stars 8 forks source link

Uart calls OnReciveListener after receiving only 1 byte bug #13

Closed chunkitmax closed 9 years ago

chunkitmax commented 9 years ago

OnReceiveListener in your SmartCar always gets the first byte at the first callback

For example:

Android: output_stream.write("Hi."); output_stream.flush();

SmartCar: 1st OnReceiveListener: bytes = 'H' , size = 1 2nd OnReceiveListener: bytes = { 'i', '.' } , size = 2

chunkitmax commented 9 years ago

https://gist.github.com/chunkitmax/9286f35666938ba6734e