From 98ffe0e5d15f05351e53a7ec6add8a29a99de113 Mon Sep 17 00:00:00 2001 From: pennam Date: Wed, 22 Nov 2023 13:59:14 +0100 Subject: [PATCH] ESP32 OTA: check if device partition table is OTA compatible --- src/utility/ota/OTA-esp32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utility/ota/OTA-esp32.cpp b/src/utility/ota/OTA-esp32.cpp index 443187c7..51065d1b 100644 --- a/src/utility/ota/OTA-esp32.cpp +++ b/src/utility/ota/OTA-esp32.cpp @@ -122,8 +122,7 @@ String esp32_getOTAImageSHA256() bool esp32_isOTACapable() { - /* NOTE: here is possible to check if current partition scheme is OTA compatible */ - return true; + return Arduino_ESP32_OTA::isCapable(); } #endif /* ARDUINO_ARCH_ESP32 */