Adjust Linux and Win32 application SAFEOP->OP timeouts, fixes #141
This commit is contained in:
parent
b978b4cb5c
commit
151045ed56
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue