1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Merge pull request #5006 from GeorgeTG/master

Fix IMU mutex lock
This commit is contained in:
Martin Budden 2018-01-21 11:10:00 +00:00 committed by GitHub
commit 2e4aafcaea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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