Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ralim/usb-pd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen V. Brown <Ralim@Ralimtek.com>2022-06-23 14:04:33 +0300
committerBen V. Brown <Ralim@Ralimtek.com>2022-06-23 14:04:33 +0300
commit67875095963d46bda6dbeb631acb48c34cb7e09b (patch)
treec62fef209a4dce50a778cbf0d2b43d27752c51f0
parentd46289acdbe004e13d40d5024850abb7b3638b0f (diff)
Also unblock message tx on message rx
-rw-r--r--src/policy_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy_engine.cpp b/src/policy_engine.cpp
index ccc3a93..c1f5961 100644
--- a/src/policy_engine.cpp
+++ b/src/policy_engine.cpp
@@ -228,7 +228,7 @@ PolicyEngine::policy_engine_state PolicyEngine::pe_start_message_tx(PolicyEngine
#endif
// Setup waiting for notification
- return waitForEvent(PEWaitingMessageTx, (uint32_t)Notifications::RESET | (uint32_t)Notifications::I_TXSENT | (uint32_t)Notifications::I_RETRYFAIL, 0xFFFFFFFF);
+ return waitForEvent(PEWaitingMessageTx, (uint32_t)Notifications::RESET | (uint32_t)Notifications::MSG_RX | (uint32_t)Notifications::I_TXSENT | (uint32_t)Notifications::I_RETRYFAIL, 0xFFFFFFFF);
}
void PolicyEngine::clearEvents(uint32_t notification) { currentEvents &= ~notification; }