mic-985xx: 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-21 18:54:00 +01:00 committed by Uwe Hermann
parent 98842e53eb
commit 3e2373247c
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ static int mic_send(struct sr_serial_dev_inst *serial, const char *cmd)
{
int ret;
if ((ret = serial_write(serial, cmd, strlen(cmd))) < 0) {
if ((ret = serial_write_blocking(serial, cmd, strlen(cmd))) < 0) {
sr_err("Error sending '%s' command: %d.", cmd, ret);
return SR_ERR;
}