Fixed bug in master state machine that came up in r745.
authorFlorian Pose <fp@igh-essen.com>
Fri, 12 Jan 2007 12:09:38 +0000
changeset 530 3e0611dfe020
parent 529 fdd5cc30441b
child 531 8d9339e7453f
Fixed bug in master state machine that came up in r745.
master/fsm_master.c
--- a/master/fsm_master.c	Wed Jan 10 16:34:42 2007 +0000
+++ b/master/fsm_master.c	Fri Jan 12 12:09:38 2007 +0000
@@ -256,7 +256,7 @@
 
         // begin scanning of slaves
         fsm->slave = list_entry(master->slaves.next, ec_slave_t, list);
-        ec_fsm_slave_start_scan(&fsm->fsm_slave, slave);
+        ec_fsm_slave_start_scan(&fsm->fsm_slave, fsm->slave);
         ec_fsm_slave_exec(&fsm->fsm_slave); // execute immediately
         fsm->state = ec_fsm_master_state_scan_slaves;
         return;