From e747169d91d452b520a6216b09fb4e6a578976cb Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Fri, 8 Sep 2023 11:29:37 +0900 Subject: [PATCH] fix #438 --- src/lgfx/v1/platforms/esp32/common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lgfx/v1/platforms/esp32/common.cpp b/src/lgfx/v1/platforms/esp32/common.cpp index 2f63f4d1..5c0e8ba7 100644 --- a/src/lgfx/v1/platforms/esp32/common.cpp +++ b/src/lgfx/v1/platforms/esp32/common.cpp @@ -806,7 +806,8 @@ namespace lgfx cmd_val |= (1 << 10); // ACK_VALUE (set NACK) } #if defined (CONFIG_IDF_TARGET_ESP32S3) - #if (ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0, 2) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 1, 2)) + #if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 3) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 1, 0)) \ + || (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 1) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0)) (&dev->comd[0])[index].val = cmd_val; #else (&dev->comd0)[index].val = cmd_val;