diff options
Diffstat (limited to 'wctdm.c')
-rw-r--r-- | wctdm.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -863,16 +863,10 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card) fxo->battalarm = (battalarm - battdebounce) / MS_PER_CHECK_HOOK; #endif } - } - wc->mod[card].fxo.battdebounce = battdebounce; - } - } else if (abs(b) > battthresh) { - if (!wc->mod[card].fxo.battery && !wc->mod[card].fxo.battdebounce) { - if (debug) - printk("BATTERY on %d/%d (%s)!\n", wc->span.spanno, card + 1, - (b < 0) ? "-" : "+"); + } else { /* start the debounce timer to verify that battery has been lost */ - fxo->battdebounce = battdebounce / MS_PER_CHECK_HOOK; + fxo->battdebounce = battdebounce / MS_PER_CHECK_HOOK; + } } } else { /* possible existing states: |