From df19c4e68e7f0dddde27e9024f3168e30ab03c3d Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Sun, 27 Dec 2020 05:08:22 +0000 Subject: [PATCH] ESP32: Update to ESP-IDF 4.2 https://github.com/cesanta/mongoose-os/issues/565 --- src/esp32/esp32_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esp32/esp32_fs.c b/src/esp32/esp32_fs.c index 19db416..7688778 100644 --- a/src/esp32/esp32_fs.c +++ b/src/esp32/esp32_fs.c @@ -58,7 +58,7 @@ const esp_partition_t *esp32_find_fs_for_app_slot(int slot) { } int esp32_get_boot_slot() { - const esp_partition_t *p = esp_ota_get_boot_partition(); + const esp_partition_t *p = esp_ota_get_running_partition(); if (p == NULL) return -1; return SUBTYPE_TO_SLOT(p->subtype); }