summaryrefslogtreecommitdiff
path: root/wctdm.c
diff options
context:
space:
mode:
Diffstat (limited to 'wctdm.c')
-rw-r--r--wctdm.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/wctdm.c b/wctdm.c
index e64c995..e3498dc 100644
--- a/wctdm.c
+++ b/wctdm.c
@@ -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: