Simple USSD test.
Dependencies: FATFileSystem mbed-rtos
Fork of USBHost by
Diff: USBHostHub/USBHostHub.cpp
- Revision:
- 13:b58a2204422f
- Parent:
- 8:93da8ea2708b
--- a/USBHostHub/USBHostHub.cpp Tue Aug 13 09:42:31 2013 +0000 +++ b/USBHostHub/USBHostHub.cpp Mon Sep 16 15:36:24 2013 +0100 @@ -192,7 +192,7 @@ host->deviceConnected(dev->getHub() + 1, port, status & PORT_LOW_SPEED, this); } else { USB_DBG("[hub handler hub: %d - port: %d] device disconnected", dev->getHub(), port); - host->deviceDisconnected(dev->getHub() + 1, port, this, NULL); + host->deviceDisconnected(dev->getHub() + 1, port, this, 0); } clearPortFeature(C_PORT_CONNECTION_FEATURE, port); @@ -209,7 +209,7 @@ if ((status & PORT_OVER_CURRENT)) { USB_ERR("OVER CURRENT DETECTED\r\n"); clearPortFeature(PORT_OVER_CURRENT, port); - host->deviceDisconnected(dev->getHub() + 1, port, this, NULL); + host->deviceDisconnected(dev->getHub() + 1, port, this, 0); } } } @@ -229,7 +229,7 @@ if (status & PORT_OVER_CURRENT) { USB_ERR("OVER CURRENT DETECTED\r\n"); clearPortFeature(PORT_OVER_CURRENT, port); - host->deviceDisconnected(dev->getHub() + 1, port, this, NULL); + host->deviceDisconnected(dev->getHub() + 1, port, this, 0); break; } Thread::wait(10);