Always wait until complete frame has been transmitted
This commit is contained in:
@ -213,6 +213,11 @@ mbus_serial_send_frame(mbus_serial_handle *handle, mbus_frame *frame)
|
||||
return -1;
|
||||
}
|
||||
|
||||
//
|
||||
// wait until complete frame has been transmitted
|
||||
//
|
||||
tcdrain(handle->fd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user