Fix IMU mutex lock

This commit is contained in:
George Gougoudis 2018-01-21 05:58:24 +02:00
parent af477487fc
commit 3884d9383c
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -40,3 +40,4 @@ stm32.mak
.vagrant
ubuntu*.log
/.vs

View File

@ -58,7 +58,7 @@ static uint32_t imuDeltaT = 0;
static bool imuUpdated = false;
#endif
#define IMU_LOCK pthread_mutex_unlock(&imuUpdateLock)
#define IMU_LOCK pthread_mutex_lock(&imuUpdateLock)
#define IMU_UNLOCK pthread_mutex_unlock(&imuUpdateLock)
#else