We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d83f11 commit 064d497Copy full SHA for 064d497
tests/unit-test-client.c
@@ -297,6 +297,10 @@ int main(int argc, char *argv[])
297
: UT_INPUT_REGISTERS_NB;
298
memset(tab_rp_registers, 0, nb_points * sizeof(uint16_t));
299
300
+ /* Wait remaining bytes before flushing */
301
+ usleep(1000000);
302
+ modbus_flush(ctx);
303
+
304
TEST_TITLE("4/5 modbus_write_and_read_registers");
305
/* Write registers to zero from tab_rp_registers and store read registers
306
into tab_rp_registers. So the read registers must set to 0, except the
0 commit comments