master/slave_config.c
branchstable-1.4
changeset 1647 dd648d1786e9
parent 1181 9e5954a2a46e
child 1685 399ef727bf62
equal deleted inserted replaced
1646:c887af3c92b3 1647:dd648d1786e9
   746         ec_slave_config_state_t *state)
   746         ec_slave_config_state_t *state)
   747 {
   747 {
   748     state->online = sc->slave ? 1 : 0;
   748     state->online = sc->slave ? 1 : 0;
   749     if (state->online) {
   749     if (state->online) {
   750         state->operational =
   750         state->operational =
   751             sc->slave->current_state == EC_SLAVE_STATE_OP;
   751             sc->slave->current_state == EC_SLAVE_STATE_OP
       
   752             && !sc->slave->force_config;
   752         state->al_state = sc->slave->current_state;
   753         state->al_state = sc->slave->current_state;
   753     } else {
   754     } else {
   754         state->operational = 0;
   755         state->operational = 0;
   755         state->al_state = EC_SLAVE_STATE_UNKNOWN;
   756         state->al_state = EC_SLAVE_STATE_UNKNOWN;
   756     }
   757     }