diff --git a/include/sta/rtos/queue.hpp b/include/sta/rtos/queue.hpp index 51d5442..fe6fdc2 100644 --- a/include/sta/rtos/queue.hpp +++ b/include/sta/rtos/queue.hpp @@ -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. * diff --git a/include/sta/rtos/queue.tpp b/include/sta/rtos/queue.tpp index 0d97029..858fec7 100644 --- a/include/sta/rtos/queue.tpp +++ b/include/sta/rtos/queue.tpp @@ -30,7 +30,7 @@ namespace sta } template - bool RtosQueue::put(const T & msg, uint32_t timeout /* = osWaitForever */) + bool RtosQueue::put(const T msg, uint32_t timeout /* = osWaitForever */) { return (osOK == osMessageQueuePut(handle_, &msg, 0, timeout)); }