--- a/usbmgmt/usbmgr/usbman/chargingplugin/src/idpinwatcher.cpp Thu Jul 15 20:42:20 2010 +0300
+++ b/usbmgmt/usbmgr/usbman/chargingplugin/src/idpinwatcher.cpp Tue Aug 31 17:01:47 2010 +0300
@@ -48,7 +48,13 @@
void CIdPinWatcher::ConstructL()
{
- User::LeaveIfError(iIdPinProp.Attach(KUidUsbManCategory, KUsbOtgIdPinPresentProperty));
+#ifdef __CHARGING_PLUGIN_TEST_CODE__
+ const TInt8 KPropertyOffsetForChargingTest = 100;
+ User::LeaveIfError(iIdPinProp.Attach(KUidUsbManCategory, KUsbOtgIdPinPresentProperty + KPropertyOffsetForChargingTest));
+#else
+ User::LeaveIfError(iIdPinProp.Attach(KUidUsbManCategory, KUsbOtgIdPinPresentProperty));
+#endif
+
iIdPinProp.Subscribe(iStatus);
SetActive();