master/fsm_pdo_config.c
changeset 877 d2915690047f
parent 875 c5df898a3618
equal deleted inserted replaced
876:8acdecb5a75e 877:d2915690047f
   189         fsm->state = ec_fsm_pdo_config_state_end;
   189         fsm->state = ec_fsm_pdo_config_state_end;
   190         return;
   190         return;
   191     }
   191     }
   192 
   192 
   193     // Pdo configuration has to be changed. Does the slave support this?
   193     // Pdo configuration has to be changed. Does the slave support this?
   194     if (fsm->slave->sii.mailbox_protocols & EC_MBOX_COE
   194     if (!(fsm->slave->sii.mailbox_protocols & EC_MBOX_COE)
   195             || (fsm->slave->sii.has_general
   195             || (fsm->slave->sii.has_general
   196                 && !fsm->slave->sii.coe_details.enable_pdo_configuration)) {
   196                 && !fsm->slave->sii.coe_details.enable_pdo_configuration)) {
   197         EC_ERR("Slave %u does not support changing the Pdo configuration!\n",
   197         EC_ERR("Slave %u does not support changing the Pdo configuration!\n",
   198                 fsm->slave->ring_position);
   198                 fsm->slave->ring_position);
   199         fsm->state = ec_fsm_pdo_config_state_error;
   199         fsm->state = ec_fsm_pdo_config_state_error;