[PATCH 2/2] qtserialbluetooth: use QIODevice::Unbuffered io

Thiago Macieira thiago at macieira.org
Tue Sep 29 13:42:44 PDT 2015


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.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the subsurface mailing list