mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-09-28 18:57:33 +00:00
Refactor CAN bus message queuing to pass by value
This commit is contained in:
@@ -61,7 +61,7 @@ namespace sta
|
||||
* @param timeout Timeout for placing message (0 = no wait, osWaitForever = blocking)
|
||||
* @return True if message was queued successfully
|
||||
*/
|
||||
bool queueCanBusMsg(const CanSysMsg & msg, uint32_t timeout);
|
||||
bool queueCanBusMsg(const CanSysMsg msg, uint32_t timeout);
|
||||
|
||||
/**
|
||||
* @brief Retrieve system message from CAN driver TX queue.
|
||||
|
@@ -79,7 +79,7 @@ namespace sta
|
||||
}
|
||||
}
|
||||
|
||||
bool CanBus::queueCanBusMsg(const CanSysMsg &msg, uint32_t timeout)
|
||||
bool CanBus::queueCanBusMsg(const CanSysMsg msg, uint32_t timeout)
|
||||
{
|
||||
// This technically should check if we are using a system message, but we just pretending that everything is one of those rn
|
||||
// STA_ASSERT((msg.header.sid & ~STA_CAN_SID_SYS_BITS) == 0);
|
||||
|
Reference in New Issue
Block a user