c4ev3 / ev3duder

The LEGO® EV3 Downloader/UploaDER.
http://c4ev3.github.io/ev3duder/doc/html/globals_func.html
GNU General Public License v3.0
34 stars 12 forks source link

fix(bt): write loop: advance pointer by sent bytes #21

Closed JakubVanek closed 4 years ago

JakubVanek commented 4 years ago

There is a hidden bug in the bluetooth write loop - the input buffer pointer is not advanced. If the write() was short, the end of the buffer wouldn't get written to the device.

a3f commented 4 years ago

Ouch. Thanks for spotting this,