# HG changeset patch # User Florian Pose # Date 1354715732 -3600 # Node ID 9c18c29b89424ce0c9ed8ba462840db503415d83 # Parent fb2fe8fae501bc1d9e8f26679ef0476d3de7155c Minor DC debugging. diff -r fb2fe8fae501 -r 9c18c29b8942 master/fsm_master.c --- a/master/fsm_master.c Wed Dec 05 13:30:08 2012 +0100 +++ b/master/fsm_master.c Wed Dec 05 14:55:32 2012 +0100 @@ -917,8 +917,6 @@ { 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 @@ 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 @@ 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 @@ 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,