Merge pull request 'Fix queue put to not use double reference' (#30) from fix/queue into main

Reviewed-on: https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils/pulls/30
This commit is contained in:
carlwachter 2024-11-03 11:44:55 +00:00
commit abfb9f08ff
2 changed files with 2 additions and 2 deletions

View File

@ -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.
*

View File

@ -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));
}