diff --git a/source/Core/Drivers/FUSB302/protocol_tx.cpp b/source/Core/Drivers/FUSB302/protocol_tx.cpp index d526151b..686c41d2 100644 --- a/source/Core/Drivers/FUSB302/protocol_tx.cpp +++ b/source/Core/Drivers/FUSB302/protocol_tx.cpp @@ -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; diff --git a/source/Core/Drivers/FUSB302/protocol_tx.h b/source/Core/Drivers/FUSB302/protocol_tx.h index 9c9b3414..1d12e18b 100644 --- a/source/Core/Drivers/FUSB302/protocol_tx.h +++ b/source/Core/Drivers/FUSB302/protocol_tx.h @@ -38,7 +38,6 @@ public: PDB_EVT_PRLTX_I_RETRYFAIL = EVENT_MASK(2), // PDB_EVT_PRLTX_DISCARD = EVENT_MASK(3), // PDB_EVT_PRLTX_MSG_TX = EVENT_MASK(4), // - PDB_EVT_PRLTX_START_AMS = EVENT_MASK(5), // }; static void notify(Notifications notification);