From d2a5476af1ca817f4863a41cc84f0f9074b1150d Mon Sep 17 00:00:00 2001 From: Antoine Albertelli Date: Wed, 23 Sep 2015 14:57:14 +0200 Subject: [PATCH] Fix mutex lock typo --- libuavcan_drivers/stm32/driver/src/uc_stm32_thread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libuavcan_drivers/stm32/driver/src/uc_stm32_thread.cpp b/libuavcan_drivers/stm32/driver/src/uc_stm32_thread.cpp index d9a4ceffe6..93b8c0a85c 100644 --- a/libuavcan_drivers/stm32/driver/src/uc_stm32_thread.cpp +++ b/libuavcan_drivers/stm32/driver/src/uc_stm32_thread.cpp @@ -67,16 +67,16 @@ void BusEvent::signalFromInterrupt() */ void Mutex::lock() { -# if (CH_KERNEL_MAJOR == 2) - chibios_rt::BaseThread::unlockMutex(); -# else // ChibiOS 3 mtx_.lock(); -# endif } void Mutex::unlock() { +# if (CH_KERNEL_MAJOR == 2) + chibios_rt::BaseThread::unlockMutex(); +# else // ChibiOS 3 mtx_.unlock(); +# endif } #elif UAVCAN_STM32_NUTTX