From 151045ed56a83f7442461406363a9d79cc43cd22 Mon Sep 17 00:00:00 2001 From: Andreas Karlsson Date: Fri, 24 May 2019 13:49:10 +0200 Subject: [PATCH] Adjust Linux and Win32 application SAFEOP->OP timeouts, fixes #141 --- test/linux/eoe_test/eoe_test.c | 2 +- test/linux/red_test/red_test.c | 2 +- test/linux/simple_test/simple_test.c | 2 +- test/win32/red_test/red_test.c | 2 +- test/win32/simple_test/simple_test.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/linux/eoe_test/eoe_test.c b/test/linux/eoe_test/eoe_test.c index 7a69d8f..98f8997 100644 --- a/test/linux/eoe_test/eoe_test.c +++ b/test/linux/eoe_test/eoe_test.c @@ -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 { diff --git a/test/linux/red_test/red_test.c b/test/linux/red_test/red_test.c index d42e20f..e8a601f 100644 --- a/test/linux/red_test/red_test.c +++ b/test/linux/red_test/red_test.c @@ -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; diff --git a/test/linux/simple_test/simple_test.c b/test/linux/simple_test/simple_test.c index 684ff52..a76353f 100644 --- a/test/linux/simple_test/simple_test.c +++ b/test/linux/simple_test/simple_test.c @@ -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 { diff --git a/test/win32/red_test/red_test.c b/test/win32/red_test/red_test.c index 9adf373..4bf9705 100644 --- a/test/win32/red_test/red_test.c +++ b/test/win32/red_test/red_test.c @@ -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; diff --git a/test/win32/simple_test/simple_test.c b/test/win32/simple_test/simple_test.c index 2e93c68..d38fbeb 100644 --- a/test/win32/simple_test/simple_test.c +++ b/test/win32/simple_test/simple_test.c @@ -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 {