1
0
forked from me/IronOS

Update USBPD.cpp

This commit is contained in:
Ben V. Brown
2022-02-06 14:41:52 +11:00
parent a2918ae8a4
commit 1969d860c7

View File

@@ -67,16 +67,7 @@ bool USBPowerDelivery::fusbPresent() {
return detectionState == 1;
}
bool USBPowerDelivery::isVBUSConnected() {
// Check the status reg
FUSB302::fusb_status status;
if (fusb.fusb_get_status(&status)) {
return status.status0 & 0x80;
}
// As we are using this to detect the mod fail safe
return true;
}
bool USBPowerDelivery::isVBUSConnected() { return fusb.isVBUSConnected(); }
bool pdbs_dpm_evaluate_capability(const pd_msg *capabilities, pd_msg *request) {