XOOMの動作状況を聞き処理を変えてみました。 USBケーブルを抜いた際に処理を終了するようにしました。

Dependencies:   mbed

Revision:
3:432e5675d240
Parent:
0:9fb6c423e32c
--- a/USBHost.cpp	Thu May 26 19:08:55 2011 +0000
+++ b/USBHost.cpp	Fri May 27 18:51:15 2011 +0000
@@ -24,6 +24,7 @@
 #include "mbed.h"
 #include "USBHost.h"
 
+
 //    Config (default uses x bytes)
 #define MAX_DEVICES 8                // Max number of devices
 #define MAX_ENDPOINTS_TOTAL 16        // Max number of endpoints total
@@ -758,7 +759,7 @@
     }
 
     void ResetPort(int hub, int port)
-    {
+    {        
         LOG("ResetPort Hub:%d Port:%d\r\n",hub,port);
         _connectPending++;            // Only reset/add 1 device at a time
         if (hub == 0)