diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-01 03:22:54 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-01 03:22:54 +0000 |
commit | 98f322a87fb25a4a9c91b830e3a6298af9a0c309 (patch) | |
tree | 6c1db4ea7eb4a98cebcf2ff6ceaf038048aedfee | |
parent | ec9071a50adf4afc5d694d2716450d70f45062ab (diff) |
Fix disconnect supervision
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@378 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wcfxs.c | 6 | ||||
-rwxr-xr-x | wctdm.c | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -1218,11 +1218,11 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card) } #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 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card) /* It's something else... */ wc->mod.fxo.battdebounce[card] = BATT_DEBOUNCE; } + if (wc->mod.fxo.battdebounce[card]) + wc->mod.fxo.battdebounce[card]--; } @@ -1218,11 +1218,11 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card) } #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 @@ static inline void wcfxs_voicedaa_check_hook(struct wcfxs *wc, int card) /* It's something else... */ wc->mod.fxo.battdebounce[card] = BATT_DEBOUNCE; } + if (wc->mod.fxo.battdebounce[card]) + wc->mod.fxo.battdebounce[card]--; } |