Better outputs concerning responding slaves.
This commit is contained in:
parent
75b31b137c
commit
84bd407874
|
|
@ -241,8 +241,8 @@ void ec_domain_response_count(ec_domain_t *domain, /**< Dom
|
|||
{
|
||||
if (count != domain->response_count) {
|
||||
domain->response_count = count;
|
||||
EC_INFO("Domain %08X state change - %i slave%s responding.\n",
|
||||
(u32) domain, count, count == 1 ? "" : "s");
|
||||
EC_INFO("Domain 0x%08X working counter change: %i\n",
|
||||
(u32) domain, count);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -956,8 +956,8 @@ int ecrt_master_activate(ec_master_t *master /**< EtherCAT-Master */)
|
|||
return -1;
|
||||
}
|
||||
|
||||
master->slaves_responding = master->slave_count;
|
||||
master->slave_states = EC_SLAVE_STATE_OP;
|
||||
master->slaves_responding = 0;
|
||||
master->slave_states = EC_SLAVE_STATE_INIT;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue