application: add USB-C shunt to test list

This commit is contained in:
King Kévin 2019-12-07 23:46:57 +01:00
parent a604531eae
commit 2513c89fa9
1 changed files with 5 additions and 3 deletions

View File

@ -422,7 +422,7 @@ static void command_test(void* argument)
}
}
} // float_errors
printf("all pins are floating\n");
printf("all pins are floating\n\n");
// cables to test
const struct usb_cable_t test_cables[] = {
@ -430,6 +430,8 @@ static void command_test(void* argument)
usb_cables[14], // A (device) - B 3.0 shielded cable
usb_cables[17], // A (host) - miniB 2.0 shielded cable
usb_cables[25], // A (host) - microB 3.0 shielded cable
usb_cables[31], // C (host) shunt
usb_cables[32], // C (device) shunt
};
for (uint8_t cable = 0; cable < LENGTH(test_cables); cable++) {
@ -454,10 +456,10 @@ static void command_test(void* argument)
}
}
}
printf("connections are ok\n");
printf("cable connections are OK\n\n");
}
goto end;
printf("all connectors are OK, the board is fine\n");
end:
usb_pins_float(); // put pins back to safe state
if (user_input_available) {