test

Dependencies:   mbed-rtos

Dependents:   Production_version1_0 Production_ver1_0 USBHost_TEST USBHost_Test5 ... more

Fork of USBHost by mbed official

Revision:
27:4206883f4cb7
Parent:
24:868cbfe611a7
diff -r 607951c26872 -r 4206883f4cb7 USBHostSerial/USBHostSerial.cpp
--- a/USBHostSerial/USBHostSerial.cpp	Mon Aug 18 13:45:26 2014 +0100
+++ b/USBHostSerial/USBHostSerial.cpp	Mon Jan 19 14:30:37 2015 +0000
@@ -71,6 +71,7 @@
             {
                 USBHostSerialPort::connect(host,d,port_intf,bulk_in, bulk_out);
                 dev = d;
+                dev_connected = true;
             }
         }
     }
@@ -171,6 +172,7 @@
                     {
                         ports[port]->connect(host,d,port_intf[port],bulk_in, bulk_out);
                         dev = d;
+                        dev_connected = true;
                     }
                 }
             }
@@ -242,7 +244,7 @@
     USB_INFO("New Serial device: VID:%04x PID:%04x [dev: %p - intf: %d]", dev->getVid(), dev->getPid(), dev, serial_intf);
     dev->setName("Serial", serial_intf);
     host->registerDriver(dev, serial_intf, this, &USBHostSerialPort::init);
-    //baud(9600);
+    baud(9600);
     size_bulk_in = bulk_in->getSize();
     size_bulk_out = bulk_out->getSize();
     bulk_in->attach(this, &USBHostSerialPort::rxHandler);