Skip to content

Commit 7fefd75

Browse files
committed
fix(spi): Update sck for C6,H2,C2
1 parent 5bcaf99 commit 7fefd75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-spi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ void spiTransaction(spi_t * spi, uint32_t clockDiv, uint8_t dataMode, uint8_t bi
11151115
spi->dev->ctrl.wr_bit_order = 1;
11161116
spi->dev->ctrl.rd_bit_order = 1;
11171117
}
1118-
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
1118+
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2
11191119
// Sync new config with hardware, fixes https://github.com/espressif/arduino-esp32/issues/9221
11201120
spi->dev->cmd.update = 1;
11211121
while (spi->dev->cmd.update);

0 commit comments

Comments
 (0)