[PATCH 2/2] qtserialbluetooth: use QIODevice::Unbuffered io
Anton Lundin
glance at acc.umu.se
Tue Sep 29 14:54:10 PDT 2015
On 29 September, 2015 - Thiago Macieira wrote:
> On Tuesday 29 September 2015 21:59:31 Anton Lundin wrote:
> > - rc = device->socket->write((char *) data + nbytes, size -
> > nbytes);
> > + rc = device->socket->write((char *) data + nbytes,
> > size - nbytes > 16 ? 16 : size - nbytes);
>
> Yeah, that really shows the bug is probably in the receiving firmware, that it
> can't deal with block sends of differing sizes.
libdivecomputer use of 1024b size blocks over the "regular" /dev/rfcommX
works just fine, but that might get re-packaged to smaller blocks
somewhere.
//Anton
--
Anton Lundin +46702-161604
More information about the subsurface
mailing list