conrad-digi-35-cpu: Make serial write call block.

This call was previously nonblocking, but there is no partial write handling.
It is only called from config_set so it is free to block.
This commit is contained in:
Martin Ling 2014-09-21 18:07:14 +01:00 committed by Uwe Hermann
parent 0ac161bba0
commit 55e32714f9
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ SR_PRIV int send_msg1(const struct sr_dev_inst *sdi, char cmd, int param)
sr_spew("send_msg1(): %c%c%c%c\\r", buf[0], buf[1], buf[2], buf[3]);
if (serial_write(serial, buf, sizeof(buf)) == -1) {
if (serial_write_blocking(serial, buf, sizeof(buf)) == -1) {
sr_err("Write error for cmd=%c: %d %s", cmd, errno, strerror(errno));
return SR_ERR;
}