git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg@22 83fadc84-e282...
authorMark Cannon <vyhdycokio@gmail.com>
Wed, 13 Feb 2008 18:37:33 +0000 (18:37 +0000)
committerMark Cannon <vyhdycokio@gmail.com>
Wed, 13 Feb 2008 18:37:33 +0000 (18:37 +0000)
src/io/USBDriver.cpp

index cdf35c7..5c2475d 100644 (file)
@@ -82,14 +82,14 @@ bool USBDriver::Open()
        // set the device
        struct usb_device *device = FindDevice( usb_busses );
 
-       LOG->Trace( "device set." );
-
        if( device == NULL )
        {
                LOG->Warn( "USBDriver: could not set usb_device" );
                return false;
        }
 
+       LOG->Trace( "device set." );
+
        m_pHandle = usb_open( device );
 
        if( m_pHandle == NULL )