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

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.

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