globals.h: bugfix i2c mutex control

This commit is contained in:
Klaus K Wilting committed 2019-01-26 13:11:44 +01:00
1 parent f87a0abff7
commit 8382037bf7
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@
#define SCREEN_MODE (0x80)
// I2C bus access control
#define I2C_MUTEX_LOCK() xSemaphoreTake(I2Caccess, (DISPLAYREFRESH_MS / portTICK_PERIOD_MS)) != pdTRUE
#define I2C_MUTEX_LOCK() xSemaphoreTake(I2Caccess, (DISPLAYREFRESH_MS / portTICK_PERIOD_MS)) == pdTRUE
#define I2C_MUTEX_UNLOCK() xSemaphoreGive(I2Caccess)
// Struct holding devices's runtime configuration