diff --git a/components/spi_flash/partition.c b/components/spi_flash/partition.c index 89ad9807e9..94d6ff6a66 100644 --- a/components/spi_flash/partition.c +++ b/components/spi_flash/partition.c @@ -184,6 +184,7 @@ static esp_err_t load_partitions() } else { SLIST_INSERT_AFTER(last, item, next); } + last = item; } spi_flash_munmap(handle); return ESP_OK;