From 4750f2055847785fedf954a400040e43094d07d7 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Wed, 5 Dec 2012 14:55:32 +0100 Subject: [PATCH] Minor DC debugging. --- master/fsm_master.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/master/fsm_master.c b/master/fsm_master.c index 97878d35..a1f570b4 100644 --- a/master/fsm_master.c +++ b/master/fsm_master.c @@ -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,