mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 07:43:33 +08:00
Fix mutex lock typo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user