Force reconfiguration after attachment.

This commit is contained in:
Florian Pose 2008-07-24 15:06:47 +00:00
parent 41100780d7
commit e3caba45ab
1 changed files with 6 additions and 0 deletions

View File

@ -192,6 +192,7 @@ int ec_slave_config_attach(
sc->position, slave->ring_position);
return -2;
}
if (slave->sii.vendor_id != sc->vendor_id
|| slave->sii.product_code != sc->product_code) {
if (sc->master->debug_level)
@ -206,6 +207,11 @@ int ec_slave_config_attach(
// attach slave
slave->config = sc;
sc->slave = slave;
// force reconfiguration, because the master could have had no possibility
// for a reconfiguration, between two operation phases.
slave->force_config = 1;
ec_slave_request_state(slave, EC_SLAVE_STATE_OP);
if (sc->master->debug_level)