Better outputs concerning responding slaves.

This commit is contained in:
Florian Pose 2006-04-06 09:32:30 +00:00
parent 75b31b137c
commit 84bd407874
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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;
}