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.
Dependents: RGA-MJPEG_VideoDemo
Fork of USBHost_custom by
Diff: USBHostHub/USBHostHub.cpp
- Revision:
- 13:b58a2204422f
- Parent:
- 8:93da8ea2708b
- Child:
- 24:868cbfe611a7
--- 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);
