Correctted resetting topology_change_pending and tainted flags.

This commit is contained in:
Florian Pose 2007-03-09 13:16:12 +00:00
parent a44bb45ea0
commit 81524176a8
2 changed files with 2 additions and 1 deletions

1
TODO
View File

@ -9,7 +9,6 @@ $Id$
* Release 1.3:
- Remove addressing scheme "X:Y".
- Remove ugly ec_slave_is_coupler().
- Reset topology_change_pending on successful validation.
- Dynamic creation of EoE handlers.
* Future features:

View File

@ -209,6 +209,7 @@ void ec_fsm_master_state_broadcast(ec_fsm_master_t *fsm /**< master state machin
if (fsm->topology_change_pending &&
master->mode == EC_MASTER_MODE_IDLE) {
fsm->topology_change_pending = 0;
fsm->tainted = 0;
ec_master_eoe_stop(master);
ec_master_destroy_slaves(master);
@ -621,6 +622,7 @@ void ec_fsm_master_state_validate_product(ec_fsm_master_t *fsm /**< master state
// have all states been validated?
if (slave->list.next == &fsm->master->slaves) {
fsm->topology_change_pending = 0;
fsm->tainted = 0;
fsm->slave = list_entry(fsm->master->slaves.next, ec_slave_t, list);
// start writing addresses to offline slaves