globals.h: changed MUTEX syntax

This commit is contained in:
Verkehrsrot 2019-03-24 19:49:29 +01:00
parent 6e70e79a23
commit afd39ae2a5

View File

@ -43,8 +43,7 @@
// I2C bus access control
#define I2C_MUTEX_LOCK() \
xSemaphoreTake(I2Caccess, (3 * DISPLAYREFRESH_MS / portTICK_PERIOD_MS)) == \
pdTRUE
xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(3 * DISPLAYREFRESH_MS)) == pdTRUE
#define I2C_MUTEX_UNLOCK() xSemaphoreGive(I2Caccess)
// Struct holding devices's runtime configuration