This commit is contained in:
Ben V. Brown
2022-04-20 21:19:07 +10:00
parent 3a82210b73
commit 92f4e2060c
6 changed files with 2 additions and 16 deletions

View File

@@ -61,11 +61,9 @@ bool USBPowerDelivery::negotiationComplete() {
}
bool USBPowerDelivery::fusbPresent() {
if (detectionState == 0) {
MSG((char *)"FUSB Probe\r\n");
if (fusb.fusb_read_id()) {
detectionState = 1;
}
MSG((char *)"FUSB Probe - %d\r\n", detectionState);
}
return detectionState == 1;
}