From f863fafbc6ff6d18c39f605c5bc05b8f05fd6f95 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 4 Feb 2023 12:52:19 -0800 Subject: [PATCH] idf version check (#640) --- src/internal/DotStarEsp32DmaSpiMethod.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/internal/DotStarEsp32DmaSpiMethod.h b/src/internal/DotStarEsp32DmaSpiMethod.h index de1964f..e340769 100644 --- a/src/internal/DotStarEsp32DmaSpiMethod.h +++ b/src/internal/DotStarEsp32DmaSpiMethod.h @@ -29,6 +29,8 @@ License along with NeoPixel. If not, see #include "driver/spi_master.h" +// API and type use require newer IDF versions +#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 1) template class _DotStarEsp32DmaSpiMethod { @@ -323,3 +325,5 @@ typedef DotStarEsp32DmaSpi24BitMethod DotStarEsp32DmaSpi4BitMethod; #if SOC_SPI_SUPPORT_OCT typedef DotStarEsp32DmaSpi28BitMethod DotStarEsp32DmaSpi8BitMethod; #endif + +#endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 1) \ No newline at end of file