Added EC_WAIT_SDO_DICT define.
This commit is contained in:
parent
0260f9a080
commit
c782b9166c
|
|
@ -609,7 +609,7 @@ void ec_fsm_master_action_process_states(ec_fsm_t *fsm
|
|||
if (!(slave->sii_mailbox_protocols & EC_MBOX_COE)
|
||||
|| slave->sdo_dictionary_fetched
|
||||
|| slave->current_state == EC_SLAVE_STATE_INIT
|
||||
|| jiffies - slave->jiffies_preop < 5 * HZ
|
||||
|| jiffies - slave->jiffies_preop < EC_WAIT_SDO_DICT * HZ
|
||||
|| !slave->online
|
||||
|| slave->error_flag) continue;
|
||||
|
||||
|
|
|
|||
|
|
@ -77,6 +77,10 @@
|
|||
/** datagram timeout in microseconds */
|
||||
#define EC_IO_TIMEOUT 500
|
||||
|
||||
/** Seconds to wait before fetching SDO dictionary
|
||||
after slave entered PREOP state. */
|
||||
#define EC_WAIT_SDO_DICT 3
|
||||
|
||||
/** minimum size of a buffer used with ec_state_string() */
|
||||
#define EC_STATE_STRING_SIZE 30
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue