Trying to chase down why __libc_init_array isnt working yet

This commit is contained in:
Ben V. Brown
2022-04-18 22:27:25 +10:00
parent ecf36b9b0a
commit bb28bb45b5
8 changed files with 202 additions and 131 deletions

View File

@@ -60,9 +60,11 @@ 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;
}