Skip to content

Commit 23c6779

Browse files
authored
fix(i2c): Moved i2c pins out of CONFIG_DISABLE_HAL_LOCKS (#9164)
1 parent d177e44 commit 23c6779

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cores/esp32/esp32-hal-i2c.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ typedef volatile struct {
4242
uint32_t frequency;
4343
#if !CONFIG_DISABLE_HAL_LOCKS
4444
SemaphoreHandle_t lock;
45+
#endif
4546
int8_t scl;
4647
int8_t sda;
47-
#endif
48+
4849
} i2c_bus_t;
4950

5051
static i2c_bus_t bus[SOC_I2C_NUM];

0 commit comments

Comments
 (0)