Fixed the queue of TX messages. Had to be moved to the worker thread.

This commit is contained in:
Andy Huska
2022-11-02 15:26:07 -05:00
parent 1b41decd20
commit 6ef4c2ddfa
2 changed files with 12 additions and 7 deletions
+4 -1
View File
@@ -173,7 +173,10 @@ bool CANConnection::sendFrame(const CANFrame& pFrame)
return ret;
}
CANFrame *txFrame;
txFrame = getQueue().get();
*txFrame = pFrame;
getQueue().queue();
return piSendFrame(pFrame);
}