usbengines/usbotgwatcher/src/cusbindicatornotifier.cpp
branchRCL_3
changeset 21 ff9df6630274
parent 20 a15c582fbf97
child 23 bb32eca979b3
--- a/usbengines/usbotgwatcher/src/cusbindicatornotifier.cpp	Fri Mar 12 15:48:40 2010 +0200
+++ b/usbengines/usbotgwatcher/src/cusbindicatornotifier.cpp	Mon Mar 15 12:44:42 2010 +0200
@@ -182,7 +182,7 @@
         default:
             {
             LOG1("Unknown timer id = %d", aTimerId)
-            Panic(EWrongTimerId);
+            PANIC(EWrongTimerId);
             }
         }
     }
@@ -244,9 +244,9 @@
 //  
 void CUsbIndicatorNotifier::SetIndicatorL()
     {
-    if (!(iOtgWatcher.IsDeviceA()))
+    if (!(iOtgWatcher.IsDeviceA()) || iOtgWatcher.CurrentHostState()->Id() == EUsbStateHostAPeripheral)
         {
-        // if B, than other party (usbwatcher) takes care of usb indicator
+        // if B or peripheral, than other party (usbwatcher) takes care of usb indicator
         // in combined usbwatcher (if role swap allowed) one class has to manage usb indicator 
         return;
         }