[Asterisk-cvs] zaptel wct4xxp.c,1.31,1.32

markster at lists.digium.com markster at lists.digium.com
Wed Apr 7 18:44:06 CDT 2004


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv3719

Modified Files:
	wct4xxp.c 
Log Message:
Always update syncsrc info


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- wct4xxp.c	7 Apr 2004 20:18:20 -0000	1.31
+++ wct4xxp.c	7 Apr 2004 22:44:50 -0000	1.32
@@ -653,14 +653,14 @@
 			printk("TE410P: Timing from span %d\n", unit + 1);
 		else
 			printk("TE410P: Timing from internal timer\n");
-		wc->syncsrc = unit;
-		if ((unit < 0) || (unit > 3))
-			unit = 0;
-		else
-			unit++;
-		for (x=0;x<4;x++) 
-			wc->spans[x].syncsrc = unit;
-	}		
+	}
+	wc->syncsrc = unit;
+	if ((unit < 0) || (unit > 3))
+		unit = 0;
+	else
+		unit++;
+	for (x=0;x<4;x++) 
+		wc->spans[x].syncsrc = unit;
 }
 
 static void t4_set_timing_source_auto(struct t4 *wc)




More information about the svn-commits mailing list