Skip to content

Commit

Permalink
Adjust Linux and Win32 application SAFEOP->OP timeouts, fixes OpenEth…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Karlsson committed May 24, 2019
1 parent b978b4c commit 151045e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/linux/eoe_test/eoe_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void teststarter(char *ifname)

/* request OP state for all slaves */
ec_writestate(0);
chk = 40;
chk = 200;
/* wait for all slaves to reach OP state */
do
{
Expand Down
2 changes: 1 addition & 1 deletion test/linux/red_test/red_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void redtest(char *ifname, char *ifname2)
/* activate cyclic process data */
dorun = 1;
/* wait for all slaves to reach OP state */
ec_statecheck(0, EC_STATE_OPERATIONAL, EC_TIMEOUTSTATE);
ec_statecheck(0, EC_STATE_OPERATIONAL, 5 * EC_TIMEOUTSTATE);
oloop = ec_slave[0].Obytes;
if ((oloop == 0) && (ec_slave[0].Obits > 0)) oloop = 1;
if (oloop > 8) oloop = 8;
Expand Down
2 changes: 1 addition & 1 deletion test/linux/simple_test/simple_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void simpletest(char *ifname)
ec_receive_processdata(EC_TIMEOUTRET);
/* request OP state for all slaves */
ec_writestate(0);
chk = 40;
chk = 200;
/* wait for all slaves to reach OP state */
do
{
Expand Down
2 changes: 1 addition & 1 deletion test/win32/red_test/red_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void redtest(char *ifname, char *ifname2)
/* request OP state for all slaves */
ec_writestate(0);
/* wait for all slaves to reach OP state */
ec_statecheck(0, EC_STATE_OPERATIONAL, EC_TIMEOUTSTATE);
ec_statecheck(0, EC_STATE_OPERATIONAL, 5 * EC_TIMEOUTSTATE);
oloop = ec_slave[0].Obytes;
if ((oloop == 0) && (ec_slave[0].Obits > 0)) oloop = 1;
if (oloop > 8) oloop = 8;
Expand Down
2 changes: 1 addition & 1 deletion test/win32/simple_test/simple_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void simpletest(char *ifname)

/* request OP state for all slaves */
ec_writestate(0);
chk = 40;
chk = 200;
/* wait for all slaves to reach OP state */
do
{
Expand Down

0 comments on commit 151045e

Please sign in to comment.