Usb: Populate UsbDataStatus only when not populated am: cac33c008f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/23255181 Change-Id: Ibcbd8b9f86dfc53d35fbd4c27b327622d835369d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
8d5a3c16f9
1 changed files with 2 additions and 1 deletions
|
@ -312,7 +312,8 @@ Status queryNonCompliantChargerStatus(std::vector<PortStatus> *currentPortStatus
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if ((*currentPortStatus)[i].complianceWarnings.size() > 0) {
|
||||
if ((*currentPortStatus)[i].complianceWarnings.size() > 0 &&
|
||||
(*currentPortStatus)[i].currentPowerRole == PortPowerRole::NONE) {
|
||||
(*currentPortStatus)[i].currentMode = PortMode::UFP;
|
||||
(*currentPortStatus)[i].currentPowerRole = PortPowerRole::SINK;
|
||||
(*currentPortStatus)[i].currentDataRole = PortDataRole::NONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue