master/fsm_master.c
branchstable-1.4
changeset 1634 ae4c73f4c56d
parent 1186 ff481f097c97
child 1647 dd648d1786e9
equal deleted inserted replaced
1633:cc133310d6fd 1634:ae4c73f4c56d
   433     // check, if slaves have an Sdo dictionary to read out.
   433     // check, if slaves have an Sdo dictionary to read out.
   434     for (slave = master->slaves;
   434     for (slave = master->slaves;
   435             slave < master->slaves + master->slave_count;
   435             slave < master->slaves + master->slave_count;
   436             slave++) {
   436             slave++) {
   437         if (!(slave->sii.mailbox_protocols & EC_MBOX_COE)
   437         if (!(slave->sii.mailbox_protocols & EC_MBOX_COE)
       
   438                 || (slave->sii.has_general
       
   439                     && !slave->sii.coe_details.enable_sdo_info)
   438                 || slave->sdo_dictionary_fetched
   440                 || slave->sdo_dictionary_fetched
   439                 || slave->current_state == EC_SLAVE_STATE_INIT
   441                 || slave->current_state == EC_SLAVE_STATE_INIT
       
   442                 || slave->current_state == EC_SLAVE_STATE_UNKNOWN
   440                 || jiffies - slave->jiffies_preop < EC_WAIT_SDO_DICT * HZ
   443                 || jiffies - slave->jiffies_preop < EC_WAIT_SDO_DICT * HZ
   441                 ) continue;
   444                 ) continue;
   442 
   445 
   443         if (master->debug_level) {
   446         if (master->debug_level) {
   444             EC_DBG("Fetching Sdo dictionary from slave %u.\n",
   447             EC_DBG("Fetching Sdo dictionary from slave %u.\n",