Bugfix: Reset config_changed flag when aborting state check.

This commit is contained in:
Florian Pose 2011-09-16 09:19:24 +02:00
parent bbe96b3246
commit ad0e01da9e
1 changed files with 4 additions and 0 deletions

View File

@ -567,6 +567,8 @@ void ec_fsm_master_action_configure(
ec_slave_t *slave = fsm->slave;
if (master->config_changed) {
master->config_changed = 0;
// abort iterating through slaves,
// first compensate DC system time offsets,
// then begin configuring at slave 0
@ -819,6 +821,8 @@ void ec_fsm_master_state_scan_slave(
#endif
if (master->slave_count) {
master->config_changed = 0;
fsm->slave = master->slaves; // begin with first slave
ec_fsm_master_enter_write_system_times(fsm);
} else {