equal
deleted
inserted
replaced
113 void CUsbVBusObserver::SubscribeL(MUsbVBusObserver* aObserver) |
113 void CUsbVBusObserver::SubscribeL(MUsbVBusObserver* aObserver) |
114 { |
114 { |
115 FLOG( _L( "[USBOTGWATCHER]\tCUsbVBusObserver::SubscribeL" ) ); |
115 FLOG( _L( "[USBOTGWATCHER]\tCUsbVBusObserver::SubscribeL" ) ); |
116 |
116 |
117 User::LeaveIfError(iObservers.Append(aObserver)); |
117 User::LeaveIfError(iObservers.Append(aObserver)); |
|
118 |
|
119 FLOG( _L( "[USBOTGWATCHER]\tCUsbVBusObserver::SubscribeL Observer appended." ) ); |
118 |
120 |
119 if (KFirst == iObservers.Count()) // first item |
121 if (KFirst == iObservers.Count()) // first item |
120 { |
122 { |
121 iVBus.Subscribe(iStatus); |
123 iVBus.Subscribe(iStatus); |
122 SetActive(); |
124 SetActive(); |