Skip to content

Commit

Permalink
shinelanx-modbus-gw: increase busy wait
Browse files Browse the repository at this point in the history
There seem to be inverters which are slower. As a workaround for the
workaround increase the time to 10s. The proper solution would be to
wait until the port has been opened.

Fixes #3.
  • Loading branch information
mwalle committed Jun 28, 2024
1 parent 38a21b3 commit 4dba1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/shinelanx-modbus-gw/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ int main(int argc, FAR char *argv[])
#endif

/* XXX wait until ttyACM is available */
sleep(1);
sleep(10);

mbusd_main(nitems(mbusd_main_args), mbusd_main_args);

Expand Down

0 comments on commit 4dba1b9

Please sign in to comment.