From af818537f5fdd97f0dabcd6f5a3c942feb65f73a Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Mon, 5 Apr 2021 15:38:22 +1000 Subject: [PATCH] Unused event --- source/Core/Drivers/FUSB302/protocol_rx.cpp | 8 +------- source/Core/Drivers/FUSB302/protocol_rx.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/source/Core/Drivers/FUSB302/protocol_rx.cpp b/source/Core/Drivers/FUSB302/protocol_rx.cpp index b8556f31..7ee6a26d 100644 --- a/source/Core/Drivers/FUSB302/protocol_rx.cpp +++ b/source/Core/Drivers/FUSB302/protocol_rx.cpp @@ -34,7 +34,7 @@ union pd_msg ProtocolReceive::tempMessage; */ ProtocolReceive::protocol_rx_state ProtocolReceive::protocol_rx_wait_phy() { /* Wait for an event */ - EventBits_t evt = waitForEvent(PDB_EVT_PRLRX_RESET | PDB_EVT_PRLRX_I_GCRCSENT | PDB_EVT_PRLRX_I_RXPEND); + EventBits_t evt = waitForEvent(PDB_EVT_PRLRX_RESET | PDB_EVT_PRLRX_I_GCRCSENT); /* If we got a reset event, reset */ if (evt & PDB_EVT_PRLRX_RESET) { @@ -56,12 +56,6 @@ ProtocolReceive::protocol_rx_state ProtocolReceive::protocol_rx_wait_phy() { /* Otherwise, check the message ID */ return PRLRxCheckMessageID; } - } else if (evt & PDB_EVT_PRLRX_I_RXPEND) { - // There is an RX message pending that is not a Good CRC - union pd_msg *_rx_message = &tempMessage; - /* Read the message */ - fusb_read_message(_rx_message); - return PRLRxWaitPHY; } return PRLRxWaitPHY; diff --git a/source/Core/Drivers/FUSB302/protocol_rx.h b/source/Core/Drivers/FUSB302/protocol_rx.h index 2693f33a..3b06dea6 100644 --- a/source/Core/Drivers/FUSB302/protocol_rx.h +++ b/source/Core/Drivers/FUSB302/protocol_rx.h @@ -25,7 +25,6 @@ /* Events for the Protocol RX thread */ #define PDB_EVT_PRLRX_RESET EVENT_MASK(0) #define PDB_EVT_PRLRX_I_GCRCSENT EVENT_MASK(1) -#define PDB_EVT_PRLRX_I_RXPEND EVENT_MASK(2) class ProtocolReceive { public: