From ab9e5d3ea4e04aef46e7a0b332745e91b023d7d3 Mon Sep 17 00:00:00 2001 From: Shubham Kulkarni Date: Mon, 31 May 2021 14:18:18 +0530 Subject: [PATCH] advanced_https_ota: Remove check for CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK for validating image. Image should be validated even if CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE is enabled --- .../ota/advanced_https_ota/main/advanced_https_ota_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c b/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c index 70f65cbfdc..b2f8aaa3fd 100644 --- a/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c +++ b/examples/system/ota/advanced_https_ota/main/advanced_https_ota_example.c @@ -197,7 +197,7 @@ void app_main(void) */ ESP_ERROR_CHECK(example_connect()); -#if defined(CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE) && defined(CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK) +#if defined(CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE) /** * We are treating successful WiFi connection as a checkpoint to cancel rollback * process and mark newly updated firmware image as active. For production cases,