]> sigrok.org Git - libsigrok.git/commit
gmc-mh-1x-2x: Make serial write call block, and fix error handling.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 17:40:47 +0000 (18:40 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:30 +0000 (23:30 +0200)
commite1960467ce43cd4e327579c3a0537b611d43f31e
tree05b5e9b7276275577550052147a5c25a2d89e95f
parent4a0eda2b701d4ef26dc3f58f4ff00bbbbb21b246
gmc-mh-1x-2x: Make serial write call block, and fix error handling.

This call was previously nonblocking, but there is no handling of partial
writes. It is called from config_set where it is free to block.

Also fix error handling: serial_write can return any negative error code,
not just -1.
src/hardware/gmc-mh-1x-2x/protocol.c