[svn-commits] mspiceland: linux/trunk r7632 - /linux/trunk/drivers/dahdi/wcte12xp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Nov 23 13:13:18 CST 2009


Author: mspiceland
Date: Mon Nov 23 13:13:17 2009
New Revision: 7632

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7632
Log:
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.

Modified:
    linux/trunk/drivers/dahdi/wcte12xp/base.c

Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=7632&r1=7631&r2=7632
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Mon Nov 23 13:13:17 2009
@@ -1566,7 +1566,8 @@
 
 	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);




More information about the svn-commits mailing list