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 */ /* PD 3.0 collision avoidance */
if (PolicyEngine::isPD3_0()) { if (PolicyEngine::isPD3_0()) {
/* If we're starting an AMS, wait for permission to transmit */ /* If we're starting an AMS, wait for permission to transmit */
ProtocolTransmit::Notifications evt = waitForEvent((uint32_t)Notifications::PDB_EVT_PRLTX_START_AMS, 0); while (fusb_get_typec_current() != fusb_sink_tx_ok) {
if ((uint32_t)evt & (uint32_t)Notifications::PDB_EVT_PRLTX_START_AMS) { osDelay(1);
while (fusb_get_typec_current() != fusb_sink_tx_ok) {
osDelay(1);
}
} }
} }
messageSending = true; messageSending = true;

View File

@@ -38,7 +38,6 @@ public:
PDB_EVT_PRLTX_I_RETRYFAIL = EVENT_MASK(2), // PDB_EVT_PRLTX_I_RETRYFAIL = EVENT_MASK(2), //
PDB_EVT_PRLTX_DISCARD = EVENT_MASK(3), // PDB_EVT_PRLTX_DISCARD = EVENT_MASK(3), //
PDB_EVT_PRLTX_MSG_TX = EVENT_MASK(4), // PDB_EVT_PRLTX_MSG_TX = EVENT_MASK(4), //
PDB_EVT_PRLTX_START_AMS = EVENT_MASK(5), //
}; };
static void notify(Notifications notification); static void notify(Notifications notification);