From fa09c8af615c777fb4295a183d0dcb1585df3fd7 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Sat, 4 Mar 2017 15:34:03 +0800 Subject: [PATCH] spi_flash: fix partitions order Pointer to the tail of linked list was never set, so partitions were added to the head, instead of adding them to the tail. --- components/spi_flash/partition.c | 1 + 1 file changed, 1 insertion(+) 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;