From 06814d3190141417560317e94635d94f0a706d32 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 12 Oct 2019 15:59:21 +0200 Subject: [PATCH] i2c release time increased, for AXP192 chip --- include/globals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/globals.h b/include/globals.h index 5ae11780..76b733d4 100644 --- a/include/globals.h +++ b/include/globals.h @@ -41,12 +41,12 @@ #define BLE_MODE (0x40) #define SCREEN_MODE (0x80) -// length of display buffer for lmic event messages +// length of display buffer for lmic event messages #define LMIC_EVENTMSG_LEN 17 // I2C bus access control #define I2C_MUTEX_LOCK() \ - (xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(10)) == pdTRUE) + (xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(DISPLAYREFRESH_MS)) == pdTRUE) #define I2C_MUTEX_UNLOCK() (xSemaphoreGive(I2Caccess)) enum sendprio_t { prio_low, prio_normal, prio_high };