Improve cmd parameter parsing and handling

This commit is contained in:
Nils Faerber 2011-11-13 13:49:10 +01:00
parent c0807b3785
commit 79e351fe38
2 changed files with 111 additions and 43 deletions

View file

@ -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);