Fixed minor bug.
authorFlorian Pose <fp@igh-essen.com>
Wed, 19 Mar 2008 10:51:18 +0000
changeset 877 d2915690047f
parent 876 8acdecb5a75e
child 878 40c379697ebf
Fixed minor bug.
master/fsm_pdo_config.c
--- a/master/fsm_pdo_config.c	Tue Mar 18 11:15:22 2008 +0000
+++ b/master/fsm_pdo_config.c	Wed Mar 19 10:51:18 2008 +0000
@@ -191,7 +191,7 @@
     }
 
     // Pdo configuration has to be changed. Does the slave support this?
-    if (fsm->slave->sii.mailbox_protocols & EC_MBOX_COE
+    if (!(fsm->slave->sii.mailbox_protocols & EC_MBOX_COE)
             || (fsm->slave->sii.has_general
                 && !fsm->slave->sii.coe_details.enable_pdo_configuration)) {
         EC_ERR("Slave %u does not support changing the Pdo configuration!\n",