Check for reaching pre_op state in firm_update

This commit is contained in:
Alex Kalmuk 2021-04-06 20:46:29 +03:00
parent 25e36e44f3
commit 8aa894bc34
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ void boottest(char *ifname, uint16 slave, char *filename)
{
printf("%d slaves found and configured.\n",ec_slavecount);
/* wait for all slaves to reach PRE_OP state */
ec_statecheck(0, EC_STATE_PRE_OP, EC_TIMEOUTSTATE * 4);
printf("Request init state for slave %d\n", slave);
ec_slave[slave].state = EC_STATE_INIT;
ec_writestate(slave);