summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
diff options
context:
space:
mode:
authorMichael Spiceland <mspiceland@digium.com>2009-11-23 19:13:17 +0000
committerMichael Spiceland <mspiceland@digium.com>2009-11-23 19:13:17 +0000
commit5937a273d0274e576cc5c2d950fe642a3fb3b137 (patch)
treeff3b5c9946b4204acc74aaf0ee3cc8d3c0e5beda /drivers/dahdi/wcte12xp
parentc5fa6889ebb631ee9aa0c79079f40f40be1bec05 (diff)
Even if we are debouncing the LOS declaration, we still expect the LED to
turn red as soon as we unplug the physical cable. This impliments this on the wcte12xp just as it already does on the wct4xxp. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7632 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-rw-r--r--drivers/dahdi/wcte12xp/base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index c4c4b2b..89568a0 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -1566,7 +1566,8 @@ static void handle_leds(struct t1 *wc)
led = wc->ledstate;
- if (wc->span.alarms & (DAHDI_ALARM_RED | DAHDI_ALARM_BLUE)) {
+ if ((wc->span.alarms & (DAHDI_ALARM_RED | DAHDI_ALARM_BLUE))
+ || wc->losalarmcount) {
/* When we're in red alarm, blink the led once a second. */
if (time_after(jiffies, wc->blinktimer)) {
led = (led & __LED_GREEN) ? SET_LED_RED(led) : UNSET_LED_REDGREEN(led);