]> sigrok.org Git - libsigrok.git/commit
fluke-dmm: Make serial write calls block, and fix error handling.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 17:16:04 +0000 (18:16 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:30 +0000 (23:30 +0200)
commit50276118ca45dc3dbf91f2fc77fc1f611cf1e57d
tree880857632b39f47ebe6ef3b1791e22aed179373e
parent707fa85ad5fa7e3f74dbb6863891e80a26126b25
fluke-dmm: Make serial write calls block, and fix error handling.

These calls were previously nonblocking, but have no partial write handling.
They are made from scan and acquisition_start contexts where they are free
to block.

Remove the SERIAL_NONBLOCK at open, which only applied during scan, since all
calls in the scan are now explicitly blocking.

Also fix error handling for these calls, which appears to have been kept
from a previous direct usage of write() on a serial port fd.
src/hardware/fluke-dmm/api.c