diff --git a/src/lgfx/v1/platforms/esp32/common.cpp b/src/lgfx/v1/platforms/esp32/common.cpp index 0abad136..fd5abb56 100644 --- a/src/lgfx/v1/platforms/esp32/common.cpp +++ b/src/lgfx/v1/platforms/esp32/common.cpp @@ -61,6 +61,9 @@ Original Source: #endif #if defined (ESP_IDF_VERSION_VAL) + #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0) + #include + #endif #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 4, 0) #if defined (ESP_ARDUINO_VERSION_VAL)