Peter M. Groen
/
libmodbus
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
3c459bc15cb8245d38fad34b2fa3a2d4ff9eadc3
Authored by
Stéphane Raimbault
2010-12-08 08:25:19 +0100
1 parent
5b28fb81
Wait before flushing in unit tests
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
tests/unit-test-client.c
tests/unit-test-client.c
View file @
3c459bc
...
...
@@ -600,6 +600,8 @@ int main(int argc, char *argv[])
600
600
/* Restore original timeout */
601
601
modbus_set_timeout_begin(ctx, &timeout_begin_old);
602
602
603
+ /* Wait for data before flushing */
604
+ usleep(100);
603
605
modbus_flush(ctx);
604
606
605
607
/** BAD RESPONSE **/
...
...