From 0c93fab91fe21a548ae72eef4c2b98f8f637f5e8 Mon Sep 17 00:00:00 2001 From: markster Date: Thu, 5 Aug 2004 20:33:58 +0000 Subject: Restore inadvertantly removed line of code (bug #2218) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@448 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wcfxs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wcfxs.c') diff --git a/wcfxs.c b/wcfxs.c index b59712b..48572e9 100755 --- a/wcfxs.c +++ b/wcfxs.c @@ -1448,6 +1448,7 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card) #else zt_hooksig(&wc->chans[card], ZT_RXSIG_OFFHOOK); #endif + wc->mod.fxo.battery[card] = 1; wc->mod.fxo.nobatttimer[card] = 0; wc->mod.fxo.battdebounce[card] = BATT_DEBOUNCE; } else if (wc->mod.fxo.battery[card]) @@ -1475,7 +1476,8 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card) wc->mod.fxo.polaritydebounce[card]--; if (wc->mod.fxo.polaritydebounce[card] < 1) { if (wc->mod.fxo.lastpol[card] != wc->mod.fxo.polarity[card]) { - printk("%lu Polarity reversed (%d -> %d)\n", jiffies, + if (debug) + printk("%lu Polarity reversed (%d -> %d)\n", jiffies, wc->mod.fxo.polarity[card], wc->mod.fxo.lastpol[card]); if (wc->mod.fxo.polarity[card]) -- cgit v1.2.3