diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-08-05 20:33:58 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-08-05 20:33:58 +0000 |
commit | 0c93fab91fe21a548ae72eef4c2b98f8f637f5e8 (patch) | |
tree | 7e4d92a2ff7ebbc3249fe333400ec259755ccac7 | |
parent | f4cfabc0a3838eda41669f7e0f63782aa8cefd88 (diff) |
Restore inadvertantly removed line of code (bug #2218)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@448 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wcfxs.c | 4 | ||||
-rwxr-xr-x | wctdm.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -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]) @@ -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]) |