agilent-dmm: Make serial write call block in scan.

This call is executed at scan time so is free to block. There is no
handling for a partial write and a response is expected immediately
afterwards. It should therefore be a blocking call.
This commit is contained in:
Martin Ling 2014-09-16 02:11:05 +01:00 提交者 Uwe Hermann
父節點 e0b781a45b
當前提交 485b9ae34d
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -116,7 +116,7 @@ static GSList *scan(GSList *options)
return NULL;
serial_flush(serial);
if (serial_write(serial, "*IDN?\r\n", 7) == -1) {
if (serial_write_blocking(serial, "*IDN?\r\n", 7) == -1) {
sr_err("Unable to send identification string: %s.",
strerror(errno));
return NULL;