[Asterisk-cvs] zaptel wcfxs.c,1.51,1.52

markster at lists.digium.com markster at lists.digium.com
Fri Apr 30 23:15:39 CDT 2004


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

Modified Files:
	wcfxs.c 
Log Message:
Fix disconnect supervision


Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxs.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- wcfxs.c	29 Apr 2004 23:04:26 -0000	1.51
+++ wcfxs.c	1 May 2004 03:22:54 -0000	1.52
@@ -1218,11 +1218,11 @@
 	}
 #endif
 	b = wcfxs_getreg(wc, card, 29);
-#if 0
+#if 0 
 	{
 		static int count = 0;
 		if (!(count++ % 100)) {
-			printk("Voltage: %d\n", b);
+			printk("Card %d: Voltage: %d\n", card + 1, b);
 		}
 	}
 #endif	
@@ -1274,6 +1274,8 @@
 		/* It's something else... */
 		wc->mod.fxo.battdebounce[card] = BATT_DEBOUNCE;
 	}
+	if (wc->mod.fxo.battdebounce[card])
+		wc->mod.fxo.battdebounce[card]--;
 	
 }
 




More information about the svn-commits mailing list