diff options
-rw-r--r-- | kernel/wctdm.c | 2 | ||||
-rw-r--r-- | kernel/wctdm24xxp/base.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/wctdm.c b/kernel/wctdm.c index 00c8128..bd4f463 100644 --- a/kernel/wctdm.c +++ b/kernel/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 */ - 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); } } diff --git a/kernel/wctdm24xxp/base.c b/kernel/wctdm24xxp/base.c index 2a0f550..bfd40b5 100644 --- a/kernel/wctdm24xxp/base.c +++ b/kernel/wctdm24xxp/base.c @@ -1306,7 +1306,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 */ - 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); } } |