[Asterisk-cvs] zaptel wct1xxp.c,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Thu Oct 30 11:27:15 CST 2003


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

Modified Files:
	wct1xxp.c 
Log Message:
Resync T1 rather than trying to adjust for new offset


Index: wct1xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct1xxp.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- wct1xxp.c	21 Sep 2003 15:50:24 -0000	1.3
+++ wct1xxp.c	30 Oct 2003 17:53:23 -0000	1.4
@@ -912,9 +912,11 @@
 			for (x=3;x<32;x+=4) {
 				if (rxbuf[32 * y + ((x + WC_OFFSET) & 0x1f)] == 0x7f) {
 					if (wc->offset != (x-3)) {
-						wc->offset = x - 3;
+						/* Resync */
+						control_set_reg(wc, WC_CLOCK, 0x02 | wc->sync | wc->ise1);
+						wc->clocktimeout = 100;
 #if 1
-						if (debug) printk("New offset: %d\n", wc->offset);
+						if (debug) printk("T1: Lost our place, resyncing\n", wc->offset);
 #endif
 					}
 				}




More information about the svn-commits mailing list