master/fsm_master.c
changeset 1002 0e1aaeb3540d
parent 1000 5746fdd1ca2e
child 1003 f7cf194d6979
--- a/master/fsm_master.c	Thu Jun 12 09:44:18 2008 +0000
+++ b/master/fsm_master.c	Thu Jun 12 09:49:35 2008 +0000
@@ -698,7 +698,7 @@
 
     // 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;