Merge pull request #498 from alexkalmuk/firm-update-test-check-state

Check for reaching pre_op state in firm_update
This commit is contained in:
nakarlsson 2021-04-07 19:42:22 +02:00 committed by GitHub
commit 1568fd59be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);