[zaptel-commits] kpfleming: branch 1.4 r4429 - in /branches/1.4/kernel: wctdm.c wctdm24xxp/base.c
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Tue Jul 22 12:34:50 CDT 2008
Author: kpfleming
Date: Tue Jul 22 12:34:49 2008
New Revision: 4429
URL: http://svn.digium.com/view/zaptel?view=rev&rev=4429
Log:
make battery loss to red alarm translation actually work for these drivers
Modified:
branches/1.4/kernel/wctdm.c
branches/1.4/kernel/wctdm24xxp/base.c
Modified: branches/1.4/kernel/wctdm.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wctdm.c?view=diff&rev=4429&r1=4428&r2=4429
==============================================================================
--- branches/1.4/kernel/wctdm.c (original)
+++ branches/1.4/kernel/wctdm.c Tue Jul 22 12:34:49 2008
@@ -928,7 +928,7 @@
if (--fxo->battalarm == 0) {
/* the alarm timer has expired, so update the battery alarm state
for this channel */
- zt_alarm_channel(&wc->chans[card], fxo->battery ? ZT_ALARM_NONE : ZT_ALARM_RED);
+ zt_alarm_channel(&wc->chans[card], fxo->battery == BATTERY_LOST ? ZT_ALARM_RED : ZT_ALARM_NONE);
}
}
Modified: branches/1.4/kernel/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/wctdm24xxp/base.c?view=diff&rev=4429&r1=4428&r2=4429
==============================================================================
--- branches/1.4/kernel/wctdm24xxp/base.c (original)
+++ branches/1.4/kernel/wctdm24xxp/base.c Tue Jul 22 12:34:49 2008
@@ -1306,7 +1306,7 @@
if (--fxo->battalarm == 0) {
/* the alarm timer has expired, so update the battery alarm state
for this channel */
- zt_alarm_channel(&wc->chans[card], fxo->battery ? ZT_ALARM_NONE : ZT_ALARM_RED);
+ zt_alarm_channel(&wc->chans[card], fxo->battery == BATTERY_LOST ? ZT_ALARM_RED : ZT_ALARM_NONE);
}
}
More information about the zaptel-commits
mailing list