summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-09-25 22:05:36 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-09-25 22:05:36 +0000
commitfbdce04175f148e379a3bfb75b4879e07d59d7ac (patch)
tree39b8e796b225ba8a51d09691452817705e3b8238
parentcf09488f3260fc252ac1ea402ea31b6c9d33d07b (diff)
don't generate message needlessly
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@774 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xwctdm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wctdm.c b/wctdm.c
index cac3db3..d4df2b2 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -294,8 +294,8 @@ struct wctdm {
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 @@ static int wctdm_powerup_proslic(struct wctdm *wc, int card, int fast)
}
}
- 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 @@ static int wctdm_powerup_proslic(struct wctdm *wc, int card, int fast)
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 */