Fixed bug in slave scanning, causing a segmentation fault.

This commit is contained in:
Florian Pose 2008-06-12 09:49:35 +00:00
parent 985470c9b6
commit 2f836e6e32
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ void ec_fsm_master_state_scan_slave(
// another slave to fetch?
fsm->slave++;
if (slave < master->slaves + master->slave_count) {
if (fsm->slave < master->slaves + master->slave_count) {
ec_fsm_slave_scan_start(&fsm->fsm_slave_scan, fsm->slave);
ec_fsm_slave_scan_exec(&fsm->fsm_slave_scan); // execute immediately
return;