diff --git a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp index 3ad7dfe53f..ab7d25cc23 100644 --- a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp +++ b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp @@ -136,34 +136,29 @@ public: (void)can_driver; } - bool wait(uavcan::MonotonicDuration duration) + bool wait(uavcan::MonotonicDuration) { - bool lready = ready; - return __atomic_exchange_n (&lready, false, __ATOMIC_SEQ_CST); + (void)duration; + bool lready = ready; + return __atomic_exchange_n (&lready, false, __ATOMIC_SEQ_CST); } void signal() { - __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); + __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); } void signalFromInterrupt() { - __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); + __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); } }; class Mutex { public: - void lock() - { - - }; - void unlock() - { - - }; + void lock() { } + void unlock() { } }; #endif