mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Auto notify tx
This commit is contained in:
@@ -252,7 +252,9 @@ void ProtocolTransmit::init() {
|
||||
|
||||
void ProtocolTransmit::pushMessage(union pd_msg *msg) {
|
||||
if (messagesWaiting) {
|
||||
xQueueSend(messagesWaiting, msg, 100);
|
||||
if (xQueueSend(messagesWaiting, msg, 100) == pdTRUE) {
|
||||
notify(ProtocolTransmit::Notifications::PDB_EVT_PRLTX_MSG_TX);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user