From 8382037bf7ee93b93a9836b1ed3d86c5a159b0b5 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sat, 26 Jan 2019 13:11:44 +0100 Subject: [PATCH] globals.h: bugfix i2c mutex control --- include/globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/globals.h b/include/globals.h index f8ef5fa5..01f912ff 100644 --- a/include/globals.h +++ b/include/globals.h @@ -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