]> sigrok.org Git - libsigrok.git/commit
gmc-mh-1x-2x: Make serial write calls block.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 17:44:20 +0000 (18:44 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:30 +0000 (23:30 +0200)
commit612db3c44b5ab493d8fce9457c5807b15d169ea6
tree05ba83f0f31c95fca7608229c185af4c5691235f
parente1960467ce43cd4e327579c3a0537b611d43f31e
gmc-mh-1x-2x: Make serial write calls block.

These calls are executed from an event handler and were previously nonblocking,
but have no partial write handling. They send short packets so should be OK to
block, most likely the output buffer will be empty anyway.

Fix error handling for some: serial_write can return any negative error code.
src/hardware/gmc-mh-1x-2x/protocol.c