mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 11:27:36 +00:00
Usb: Populate UsbDataStatus only when not populated am: 877a72ffdf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/23253648 Change-Id: I9629da3e06f6c09bbbebe671f785a37f0783b8c2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
d2be95d5ca
@@ -327,7 +327,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;
|
||||
|
||||
Reference in New Issue
Block a user