master/fsm_pdo_mapping.c
changeset 824 e2501463f7d1
parent 821 c6536d28db56
child 827 205eccb70bce
equal deleted inserted replaced
823:24096a495dd8 824:e2501463f7d1
   177         // check if mapping has to be altered
   177         // check if mapping has to be altered
   178         if (ec_pdo_mapping_equal(&fsm->sync->mapping, fsm->mapping))
   178         if (ec_pdo_mapping_equal(&fsm->sync->mapping, fsm->mapping))
   179             continue;
   179             continue;
   180 
   180 
   181         if (fsm->slave->master->debug_level) {
   181         if (fsm->slave->master->debug_level) {
   182             EC_DBG("Configuring Pdo mapping for SM%u of slave %u.\n",
   182             EC_DBG("Changing Pdo mapping for SM%u of slave %u.\n",
   183                     fsm->sync->index, fsm->slave->ring_position);
   183                     fsm->sync->index, fsm->slave->ring_position);
   184         }
   184         }
   185 
   185 
   186         // set mapped Pdo count to zero
   186         // set mapped Pdo count to zero
   187         fsm->sdodata.index = 0x1C10 + fsm->sync->index;
   187         fsm->sdodata.index = 0x1C10 + fsm->sync->index;