mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Sleep for 1s before calling tcflush
This commit is contained in:
parent
b38b3e53ea
commit
1cd20426a7
1 changed files with 1 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ void EIO_Open(uv_work_t* req) {
|
|||
options.c_cc[VMIN]=1;
|
||||
options.c_cc[VTIME]=0;
|
||||
|
||||
sleep(1);
|
||||
tcflush(fd, TCIFLUSH);
|
||||
tcsetattr(fd, TCSANOW, &options);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue