master/master.c
changeset 166 29b19a90ff3f
parent 164 ed85368b2b2e
child 173 10e182a8bc4e
equal deleted inserted replaced
165:51dea253c49d 166:29b19a90ff3f
   954         // Change state to OP
   954         // Change state to OP
   955         if (unlikely(ec_slave_state_change(slave, EC_SLAVE_STATE_OP)))
   955         if (unlikely(ec_slave_state_change(slave, EC_SLAVE_STATE_OP)))
   956             return -1;
   956             return -1;
   957     }
   957     }
   958 
   958 
   959     master->slaves_responding = master->slave_count;
   959     master->slaves_responding = 0;
   960     master->slave_states = EC_SLAVE_STATE_OP;
   960     master->slave_states = EC_SLAVE_STATE_INIT;
   961 
   961 
   962     return 0;
   962     return 0;
   963 }
   963 }
   964 
   964 
   965 /*****************************************************************************/
   965 /*****************************************************************************/