diff -r 25fce757be94 -r e02eb84a14d2 usbengines/usbotgwatcher/src/cusbstatehostundefined.cpp --- a/usbengines/usbotgwatcher/src/cusbstatehostundefined.cpp Tue Aug 31 16:13:57 2010 +0300 +++ b/usbengines/usbotgwatcher/src/cusbstatehostundefined.cpp Wed Sep 01 12:20:49 2010 +0100 @@ -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; + } + + } } // ---------------------------------------------------------------------------