From 4fe336932d3c134bd985785efa488ecfd1fa8aff Mon Sep 17 00:00:00 2001 From: Jan Prochazka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Date: Tue, 23 Jan 2024 12:24:40 +0100 Subject: [PATCH] fix(i2c): Moved i2c pins out of CONFIG_DISABLE_HAL_LOCKS --- cores/esp32/esp32-hal-i2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-i2c.c b/cores/esp32/esp32-hal-i2c.c index e70428ac5bc..b76fa963e81 100644 --- a/cores/esp32/esp32-hal-i2c.c +++ b/cores/esp32/esp32-hal-i2c.c @@ -42,9 +42,10 @@ typedef volatile struct { uint32_t frequency; #if !CONFIG_DISABLE_HAL_LOCKS SemaphoreHandle_t lock; +#endif int8_t scl; int8_t sda; -#endif + } i2c_bus_t; static i2c_bus_t bus[SOC_I2C_NUM];