master/fsm.c
changeset 427 f70c7c6db7f4
parent 426 0d3022ee35a2
child 428 2731a2fcc18d
equal deleted inserted replaced
426:0d3022ee35a2 427:f70c7c6db7f4
   607     // check, if slaves have an SDO dictionary to read out.
   607     // check, if slaves have an SDO dictionary to read out.
   608     list_for_each_entry(slave, &master->slaves, list) {
   608     list_for_each_entry(slave, &master->slaves, list) {
   609         if (!(slave->sii_mailbox_protocols & EC_MBOX_COE)
   609         if (!(slave->sii_mailbox_protocols & EC_MBOX_COE)
   610             || slave->sdo_dictionary_fetched
   610             || slave->sdo_dictionary_fetched
   611             || slave->current_state == EC_SLAVE_STATE_INIT
   611             || slave->current_state == EC_SLAVE_STATE_INIT
   612             || jiffies - slave->jiffies_preop < 5 * HZ
   612             || jiffies - slave->jiffies_preop < EC_WAIT_SDO_DICT * HZ
   613             || !slave->online
   613             || !slave->online
   614             || slave->error_flag) continue;
   614             || slave->error_flag) continue;
   615 
   615 
   616         if (master->debug_level) {
   616         if (master->debug_level) {
   617             EC_DBG("Fetching SDO dictionary from slave %i.\n",
   617             EC_DBG("Fetching SDO dictionary from slave %i.\n",