summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp/base.c
diff options
context:
space:
mode:
authorMike Spiceland <mspiceland@digium.com>2009-11-23 19:13:17 +0000
committerMike Spiceland <mspiceland@digium.com>2009-11-23 19:13:17 +0000
commit2da20d0a0fbbbd0710de38aa12dcf43b50970057 (patch)
treeff3b5c9946b4204acc74aaf0ee3cc8d3c0e5beda /drivers/dahdi/wcte12xp/base.c
parenta683f61097af6f72983c24467c82b2590fd1ed44 (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/base.c')
-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);