Hold PD negotiation until detection is done for tip res

This commit is contained in:
Ben V. Brown
2022-07-01 20:01:59 +10:00
parent 1b43f71a2e
commit 0d248a601b
3 changed files with 11 additions and 7 deletions

View File

@@ -21,6 +21,9 @@
void startPOWTask(void const *argument __unused) {
// Init any other misc sensors
postRToSInit();
while (preStartChecksDone() == 0) {
osDelay(3);
}
// You have to run this once we are willing to answer PD messages
// Setting up too early can mean that we miss the ~20ms window to respond on some chargers
#if POW_PD