usb: have enableUsbDataSignal() call queryPortStatus() if successful
The USB service tracks the USB data status on its own and updates it
after every enableUsbData() call, but it doesn't update UsbPortManager's
port info until the USB HAL notifies of a port status change. Have the
HAL call queryPortStatus() on its own after every successful USB data
enable/disable attempt so that the USB data status can be propagated to
UsbPortManager.
Change-Id: I3d913df28287dd7fff233ab5978448abf65f09a9
diff --git a/hal/Usb.cpp b/hal/Usb.cpp
index 576e2ad..aa8ca84 100644
--- a/hal/Usb.cpp
+++ b/hal/Usb.cpp
@@ -91,6 +91,10 @@
}
}
+ if (result) {
+ this->queryPortStatus();
+ }
+
return result;
}