Fixed missing slave_error flag.
authorFlorian Pose <fp@igh-essen.com>
Fri, 22 Feb 2008 18:07:47 +0000
changeset 822 21c86d97c587
parent 821 c6536d28db56
child 823 24096a495dd8
Fixed missing slave_error flag.
master/fsm_slave.c
--- a/master/fsm_slave.c	Fri Feb 22 17:49:28 2008 +0000
+++ b/master/fsm_slave.c	Fri Feb 22 18:07:47 2008 +0000
@@ -1102,6 +1102,7 @@
     for (i = 0; i < slave->config->used_fmmus; i++) {
         fmmu = &slave->config->fmmu_configs[i];
         if (!(sync = ec_slave_get_pdo_sync(slave, fmmu->dir))) {
+            slave->error_flag = 1;
             fsm->state = ec_fsm_slave_state_error;
             EC_ERR("Failed to determine Pdo sync manager for FMMU on slave"
                     " %u!\n", slave->ring_position);