diff --git a/.gitignore b/.gitignore index 7996fc5e51..3c60954df4 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ stm32.mak .vagrant ubuntu*.log +/.vs diff --git a/src/main/flight/imu.c b/src/main/flight/imu.c index 86a44cb1c4..ca51c8e7a2 100644 --- a/src/main/flight/imu.c +++ b/src/main/flight/imu.c @@ -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