brymen-dmm: Fix blocking serial write timeout.

This fixes bug #427.
This commit is contained in:
Uwe Hermann 2015-09-13 23:53:55 +02:00
parent 84d328ac98
commit b9ed8eabfd
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ static int bm_send_command(uint8_t command, uint8_t arg1, uint8_t arg2,
/* TODO: How to compute the checksum? Hardware seems to ignore it. */
/* Request reading. */
written = serial_write_blocking(serial, &cmdout, sizeof(cmdout), 0);
written = serial_write_blocking(serial, &cmdout, sizeof(cmdout),
serial_timeout(serial, sizeof(cmdout)));
if (written != sizeof(cmdout))
return SR_ERR;