brymen-dmm: Make serial write call block.

This call is executed from an event handler and was previously nonblocking,
but has no partial write handling. It sends a short packet so should be OK
to block, most likely the output buffer will be empty anyway.
This commit is contained in:
Martin Ling 2014-09-16 02:47:28 +01:00 committed by Uwe Hermann
parent 44be13b1f8
commit 776313d997
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ 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(serial, &cmdout, sizeof(cmdout));
written = serial_write_blocking(serial, &cmdout, sizeof(cmdout));
if (written != sizeof(cmdout))
return SR_ERR;