Minor DC debugging.

This commit is contained in:
Florian Pose 2012-12-05 14:55:32 +01:00
parent 5a40362ee4
commit 4750f20558
1 changed files with 4 additions and 4 deletions

View File

@ -917,8 +917,6 @@ void ec_fsm_master_enter_write_system_times(
{
ec_master_t *master = fsm->master;
EC_MASTER_DBG(master, 1, "Writing system time offsets...\n");
if (master->has_app_time) {
while (fsm->slave < master->slaves + master->slave_count) {
@ -928,6 +926,8 @@ void ec_fsm_master_enter_write_system_times(
continue;
}
EC_SLAVE_DBG(fsm->slave, 1, "Checking system time offset.\n");
// read DC system time (0x0910, 64 bit)
// gap (64 bit)
// and time offset (0x0920, 64 bit)
@ -976,7 +976,7 @@ u64 ec_fsm_master_dc_offset32(
system_time32 += correction;
time_diff = (u32) slave->master->app_time - system_time32;
EC_SLAVE_DBG(slave, 1, "DC system time offset calculation:"
EC_SLAVE_DBG(slave, 1, "DC 32 bit system time offset calculation:"
" system_time=%u (corrected with %u),"
" app_time=%llu, diff=%i\n",
system_time32, correction,
@ -1013,7 +1013,7 @@ u64 ec_fsm_master_dc_offset64(
system_time += correction;
time_diff = fsm->slave->master->app_time - system_time;
EC_SLAVE_DBG(slave, 1, "DC system time offset calculation:"
EC_SLAVE_DBG(slave, 1, "DC 64 bit system time offset calculation:"
" system_time=%llu (corrected with %llu),"
" app_time=%llu, diff=%lli\n",
system_time, correction,