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 committed by Uwe Hermann
parent e0b781a45b
commit 485b9ae34d
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static GSList *scan(GSList *options)
return NULL; return NULL;
serial_flush(serial); 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.", sr_err("Unable to send identification string: %s.",
strerror(errno)); strerror(errno));
return NULL; return NULL;