// in the board parameters, change the state to kLedStateFastBlinkContinues.
if( ledState == kLedStateFail && ledInfoPtr->ledMaskFail == 0 )
ledState = kLedStateFastBlinkContinues;
-
+//#define USR9108
+#ifdef USR9108
+ if( ledName != kLedWanData )
+ printk("LEDCTRL: Led %d state %d mask %x\n",
+ ledName, ledState, ledInfoPtr->ledMask);
+#endif
switch (ledState)
{
case kLedStateOn:
break;
case kLedStateBlinkOnce:
+ // USR9108 Blink only if Led is On!
// skip blinkOnce if it is already in Slow/Fast blink continues state
- if (ledInfoPtr->savedLedState == kLedStateSlowBlinkContinues ||
- ledInfoPtr->savedLedState == kLedStateFastBlinkContinues)
- ;
- else
+// if (ledInfoPtr->savedLedState == kLedStateSlowBlinkContinues ||
+// ledInfoPtr->savedLedState == kLedStateFastBlinkContinues)
+// ;
+// else
+ if ( ledInfoPtr->savedLedState == kLedStateOn )
{
if (ledInfoPtr->blinkCountDown == 0) // skip the call if it is 1
{