diff -r 4285b54b0d2c -r 4ddb65515edd usbmgmt/usbmgr/usbman/chargingplugin/src/otgstatewatcher.cpp --- a/usbmgmt/usbmgr/usbman/chargingplugin/src/otgstatewatcher.cpp Mon May 03 14:13:42 2010 +0300 +++ b/usbmgmt/usbmgr/usbman/chargingplugin/src/otgstatewatcher.cpp Fri Jun 25 13:07:44 2010 +0800 @@ -48,7 +48,13 @@ void COtgStateWatcher::ConstructL() { - User::LeaveIfError(iOtgStateProp.Attach(KUidUsbManCategory, KUsbOtgStateProperty)); +#ifdef __CHARGING_PLUGIN_TEST_CODE__ + const TInt8 KPropertyOffsetForChargingTest = 100; + User::LeaveIfError(iOtgStateProp.Attach(KUidUsbManCategory, KUsbOtgStateProperty + KPropertyOffsetForChargingTest)); +#else + User::LeaveIfError(iOtgStateProp.Attach(KUidUsbManCategory, KUsbOtgStateProperty)); +#endif + iOtgStateProp.Subscribe(iStatus); SetActive();