mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-07 03:27:33 +00:00
Fix queue put to not use double reference
This commit is contained in:
@@ -45,7 +45,7 @@ namespace sta
|
||||
* @param timeout Timeout
|
||||
* @return True on success
|
||||
*/
|
||||
bool put(const Message & msg, uint32_t timeout = osWaitForever);
|
||||
bool put(const Message msg, uint32_t timeout = osWaitForever);
|
||||
/**
|
||||
* @brief Take message from queue.
|
||||
*
|
||||
|
@@ -30,7 +30,7 @@ namespace sta
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
bool RtosQueue<T>::put(const T & msg, uint32_t timeout /* = osWaitForever */)
|
||||
bool RtosQueue<T>::put(const T msg, uint32_t timeout /* = osWaitForever */)
|
||||
{
|
||||
return (osOK == osMessageQueuePut(handle_, &msg, 0, timeout));
|
||||
}
|
||||
|
Reference in New Issue
Block a user