Usb: Set connected status when connected to non compliant port partners am: 7c2d62aafc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/21544257 Change-Id: Ifde8201ba345210c5b8c3eda193b9cf23c59b52d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
0e5e544b9b
1 changed files with 6 additions and 0 deletions
|
@ -323,6 +323,12 @@ Status queryNonCompliantChargerStatus(std::vector<PortStatus> *currentPortStatus
|
|||
continue;
|
||||
}
|
||||
}
|
||||
if ((*currentPortStatus)[i].complianceWarnings.size() > 0) {
|
||||
(*currentPortStatus)[i].currentMode = PortMode::UFP;
|
||||
(*currentPortStatus)[i].currentPowerRole = PortPowerRole::SINK;
|
||||
(*currentPortStatus)[i].currentDataRole = PortDataRole::NONE;
|
||||
(*currentPortStatus)[i].powerBrickStatus = PowerBrickStatus::CONNECTED;
|
||||
}
|
||||
}
|
||||
}
|
||||
return Status::SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue