[Asterisk-cvs] zaptel wctdm.c,1.122,1.123

kpfleming kpfleming
Sun Sep 25 18:08:40 CDT 2005


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

Modified Files:
	wctdm.c 
Log Message:
don't generate message needlessly


Index: wctdm.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wctdm.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- wctdm.c	4 Aug 2005 20:33:33 -0000	1.122
+++ wctdm.c	25 Sep 2005 22:05:36 -0000	1.123
@@ -294,8 +294,8 @@
 	int freeregion;
 	int alt;
 	int curcard;
-/*	int cards; */
 	int cardflag;		/* Bit-map of present cards */
+	int proslic_power;
 	spinlock_t lock;
 
 	union {
@@ -1238,7 +1238,7 @@
 		}
 	}
 
-	if (vbat < 0xc0) {
+	if ((vbat < 0xc0) && !wc->proslic_power) {
 		printk("ProSLIC on module %d failed to powerup within %d ms (%d mV only)\n\n -- DID YOU REMEMBER TO PLUG IN THE HD POWER CABLE TO THE TDM400P??\n",
 		       card, (int)(((jiffies - origjiffies) * 1000 / HZ)),
 			vbat * 375);
@@ -1247,6 +1247,7 @@
 		printk("ProSLIC on module %d powered up to -%d volts (%02x) in %d ms\n",
 		       card, vbat * 376 / 1000, vbat, (int)(((jiffies - origjiffies) * 1000 / HZ)));
 	}
+	wc->proslic_power = 1;
 
         /* Proslic max allowed loop current, reg 71 LOOP_I_LIMIT */
         /* If out of range, just set it to the default value     */




More information about the svn-commits mailing list