From 6b70ea2748d6ab27c35ed3399e6cd2ffa80ef3f8 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Tue, 16 Jul 2019 22:04:23 +0200 Subject: [PATCH] globals.h: tightened i2c mutex timing --- include/globals.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/globals.h b/include/globals.h index a3edad17..d76d0e4c 100644 --- a/include/globals.h +++ b/include/globals.h @@ -42,8 +42,7 @@ #define SCREEN_MODE (0x80) // I2C bus access control -#define I2C_MUTEX_LOCK() \ - xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(3 * DISPLAYREFRESH_MS)) == pdTRUE +#define I2C_MUTEX_LOCK() xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(10)) == pdTRUE #define I2C_MUTEX_UNLOCK() xSemaphoreGive(I2Caccess) // Struct holding devices's runtime configuration