Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBHostWANDongle by
Diff: USB3GModule/WANDongle.cpp
- Revision:
- 21:dcc8c866ccbb
- Parent:
- 20:3abcf818be31
- Child:
- 23:8f2d9a244224
--- a/USB3GModule/WANDongle.cpp Thu Dec 13 14:56:55 2012 +0000 +++ b/USB3GModule/WANDongle.cpp Tue Dec 18 13:56:10 2012 +0000 @@ -87,10 +87,14 @@ DBG("The dongle is in virtual serial mode"); host->registerDriver(dev, 0, this, &WANDongle::init); m_serialCount = m_pInitializer->getSerialPortCount(); + DBG("Num serial ports: %d",m_serialCount); if( m_serialCount > WANDONGLE_MAX_SERIAL_PORTS ) { + DBG("setting serial count %d to %d",m_serialCount,WANDONGLE_MAX_SERIAL_PORTS); m_serialCount = WANDONGLE_MAX_SERIAL_PORTS; } + m_serialCount = 3; + for(int j = 0; j < m_serialCount; j++) { DBG("Connecting serial port #%d", j+1);