Skip to content

Commit

Permalink
Merge pull request OpenEtherCATsociety#498 from alexkalmuk/firm-updat…
Browse files Browse the repository at this point in the history
…e-test-check-state

Check for reaching pre_op state in firm_update
  • Loading branch information
nakarlsson authored Apr 7, 2021
2 parents 25e36e4 + 8aa894b commit 1568fd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/linux/firm_update/firm_update.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1568fd5

Please sign in to comment.