Skip to content

Commit

Permalink
Fix IMU mutex lock
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTG committed Jan 21, 2018
1 parent af47748 commit 3884d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -40,3 +40,4 @@ stm32.mak

.vagrant
ubuntu*.log
/.vs
2 changes: 1 addition & 1 deletion src/main/flight/imu.c
Expand Up @@ -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
Expand Down

0 comments on commit 3884d93

Please sign in to comment.