Re-enabled waiting for clock synchronity before setting dc offsets. (changeset b0dcdfbd4238)
authorMartin Troxler <ch1010277@ch10lt194>
Fri, 26 Nov 2010 11:23:19 +0100
changeset 2003 a7ff6c28a432
parent 2002 26b4ba6edccb
child 2004 be807e224b0e
Re-enabled waiting for clock synchronity before setting dc offsets. (changeset b0dcdfbd4238)
master/fsm_slave_config.c
--- a/master/fsm_slave_config.c	Fri Nov 26 10:33:55 2010 +0100
+++ b/master/fsm_slave_config.c	Fri Nov 26 11:23:19 2010 +0100
@@ -1248,7 +1248,7 @@
     abs_sync_diff = EC_READ_U32(datagram->data) & 0x7fffffff;
     diff_ms = (datagram->jiffies_received - fsm->jiffies_start) * 1000 / HZ;
 
-    if (0 && abs_sync_diff > EC_DC_MAX_SYNC_DIFF_NS) {
+	if (abs_sync_diff > EC_DC_MAX_SYNC_DIFF_NS) {
 
         if (diff_ms >= EC_DC_SYNC_WAIT_MS) {
             EC_SLAVE_WARN(slave, "Slave did not sync after %lu ms.\n",