Changes to support Vodafone K4606

Dependents:   VodafoneUSBModem

Fork of USBHostWANDongle by mbed official

Revision:
3:4394986752db
Parent:
2:a8b2d0cd9bbd
Child:
9:c9e9817c398c
--- a/USB3GModule/WANDongleSerialPort.cpp	Tue Jun 26 13:43:54 2012 +0000
+++ b/USB3GModule/WANDongleSerialPort.cpp	Fri Jul 06 08:53:17 2012 +0000
@@ -27,7 +27,7 @@
 
 #include "WANDongleSerialPort.h"
 
-WANDongleSerialPort::WANDongleSerialPort() : cb_tx_en(false), cb_rx_en(false)
+WANDongleSerialPort::WANDongleSerialPort() : cb_tx_en(false), cb_rx_en(false), listener(NULL)
 {
   reset();
 }
@@ -238,8 +238,9 @@
 }
 
 
-void WANDongleSerialPort::connect( Endpoint* pInEp, Endpoint* pOutEp )
+void WANDongleSerialPort::connect( USBDeviceConnected* pDev, Endpoint* pInEp, Endpoint* pOutEp )
 {
+  dev = pDev;
   bulk_in = pInEp;
   bulk_out = pOutEp;
   max_out_size = bulk_out->getSize();