Skip to content

Commit

Permalink
Check for reaching pre_op state in firm_update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkalmuk committed Apr 6, 2021
1 parent 25e36e4 commit 8aa894b
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 8aa894b

Please sign in to comment.