summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-07-22 17:37:36 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-07-22 17:37:36 +0000
commita395b3b6e59ce139dafdb347e4de1f558749b223 (patch)
tree2eb6954318ce4572eddf418b70131491daea90e6 /drivers/dahdi/wctdm.c
parente62c934837b5e33806d2ce075ce7fb16929198ed (diff)
from r4429 of zaptel... make battery loss to red alarm translation actually work
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4624 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm.c')
-rw-r--r--drivers/dahdi/wctdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c
index 5019f95..54f7845 100644
--- a/drivers/dahdi/wctdm.c
+++ b/drivers/dahdi/wctdm.c
@@ -928,7 +928,7 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card)
if (--fxo->battalarm == 0) {
/* the alarm timer has expired, so update the battery alarm state
for this channel */
- dahdi_alarm_channel(wc->chans[card], fxo->battery ? DAHDI_ALARM_NONE : DAHDI_ALARM_RED);
+ dahdi_alarm_channel(wc->chans[card], fxo->battery == BATTERY_LOST ? DAHDI_ALARM_RED : DAHDI_ALARM_NONE);
}
}