1
0
forked from me/IronOS

No need for ams marker

This commit is contained in:
Ben V. Brown
2021-04-05 11:56:38 +10:00
parent 14e272540d
commit 93ed4c9887
2 changed files with 2 additions and 6 deletions

View File

@@ -106,11 +106,8 @@ ProtocolTransmit::protocol_tx_state ProtocolTransmit::protocol_tx_construct_mess
/* PD 3.0 collision avoidance */
if (PolicyEngine::isPD3_0()) {
/* If we're starting an AMS, wait for permission to transmit */
ProtocolTransmit::Notifications evt = waitForEvent((uint32_t)Notifications::PDB_EVT_PRLTX_START_AMS, 0);
if ((uint32_t)evt & (uint32_t)Notifications::PDB_EVT_PRLTX_START_AMS) {
while (fusb_get_typec_current() != fusb_sink_tx_ok) {
osDelay(1);
}
while (fusb_get_typec_current() != fusb_sink_tx_ok) {
osDelay(1);
}
}
messageSending = true;