Skip to content

Commit fc12088

Browse files
1 parent 79857c0 commit fc12088

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/databus/Arduino_ESP32QSPI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ bool Arduino_ESP32QSPI::begin(int32_t speed, int8_t dataMode)
5656
.data7_io_num = -1,
5757
.max_transfer_sz = (ESP32QSPI_MAX_PIXELS_AT_ONCE * 16) + 8,
5858
.flags = SPICOMMON_BUSFLAG_MASTER | SPICOMMON_BUSFLAG_GPIO_PINS,
59+
#if (!defined(ESP_ARDUINO_VERSION_MAJOR)) || (ESP_ARDUINO_VERSION_MAJOR < 3)
60+
// skip this
61+
#else
5962
.isr_cpu_id = ESP_INTR_CPU_AFFINITY_AUTO,
63+
#endif
6064
.intr_flags = 0};
6165
esp_err_t ret = spi_bus_initialize(ESP32QSPI_SPI_HOST, &buscfg, ESP32QSPI_DMA_CHANNEL);
6266
if (ret != ESP_OK)

0 commit comments

Comments
 (0)