Usb: Populate UsbDataStatus only when not populated am: 877a72ffdf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/23253648 Change-Id: Id6b6cbd4f32ab0b081a79dab386799c447bb7382 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
04c6e1b410
1 changed files with 2 additions and 1 deletions
|
@ -327,7 +327,8 @@ Status queryNonCompliantChargerStatus(std::vector<PortStatus> *currentPortStatus
|
||||||
continue;
|
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].currentMode = PortMode::UFP;
|
||||||
(*currentPortStatus)[i].currentPowerRole = PortPowerRole::SINK;
|
(*currentPortStatus)[i].currentPowerRole = PortPowerRole::SINK;
|
||||||
(*currentPortStatus)[i].currentDataRole = PortDataRole::NONE;
|
(*currentPortStatus)[i].currentDataRole = PortDataRole::NONE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue