Improve cmd parameter parsing and handling
This commit is contained in:
parent
c0807b3785
commit
79e351fe38
2 changed files with 111 additions and 43 deletions
|
@ -90,6 +90,7 @@ int mw_send_frame(mwdevice_t *mwdevice, unsigned char msg_type, unsigned char op
|
|||
while (((ret = write(mwdevice->mw_fd, frame, tlen)) >= 0) && (tlen > 0))
|
||||
tlen -= ret;
|
||||
|
||||
fsync(mwdevice->mw_fd);
|
||||
if (MW_FRAME_DELAY)
|
||||
usleep(MW_FRAME_DELAY);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue