From 4d3e2435e6a96f0c332f6682240fc194e7b5583f Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Thu, 12 Jun 2008 11:53:06 +0000
Subject: [PATCH] Minor change.

---
 master/fsm_master.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/master/fsm_master.c b/master/fsm_master.c
index 905eb3e3..ea7ccb2e 100644
--- a/master/fsm_master.c
+++ b/master/fsm_master.c
@@ -231,7 +231,7 @@ void ec_fsm_master_state_broadcast(
             ec_master_clear_slaves(master);
             master->configs_attached = 0;
 
-            master->slave_count = datagram->working_counter;
+            master->slave_count = fsm->slaves_responding;
 
             if (!master->slave_count) {
                 // no slaves present -> finish state machine.
-- 
GitLab