Fix mutex lock typo

This commit is contained in:
Antoine Albertelli
2015-09-23 14:57:14 +02:00
parent a767b77de2
commit d2a5476af1
@@ -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