diff -r 3592750162a5 -r 2dc695882abd usbengines/usbotgwatcher/src/cusbstatehostundefined.cpp --- a/usbengines/usbotgwatcher/src/cusbstatehostundefined.cpp Wed Oct 13 13:08:34 2010 +0300 +++ b/usbengines/usbotgwatcher/src/cusbstatehostundefined.cpp Mon Oct 25 13:20:29 2010 +0300 @@ -15,6 +15,7 @@ * */ +#include #include "cusbotgwatcher.h" #include "cusbstatehostundefined.h" @@ -168,7 +169,8 @@ // // --------------------------------------------------------------------------- // -void CUsbStateHostUndefined::DriverLoadPartialSuccessL(TDeviceEventInformation) +void CUsbStateHostUndefined::DriverLoadPartialSuccessL( + TDeviceEventInformation) { LOG_FUNC } @@ -208,7 +210,25 @@ void CUsbStateHostUndefined::MessageNotificationReceivedL(TInt aMessage) { LOG_FUNC - LOG1( "Unhandled message aMessage = %d" , aMessage); + LOG1( "aMessage = %d" , aMessage); + + switch (aMessage) + { + // OTGDI + case KErrUsbOtgBadDeviceAttached: + { + LOG( "BadDeviceAttached" ); + HandleL(EUsbWatcherErrUnsupportedDevice, + EUsbStateHostHandleDropping); + break; + } + default: + { + LOG1( "Unhandled message = %d" , aMessage); + break; + } + + } } // ---------------------------------------------------------------------------