mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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.
This commit is contained in:
parent
66552c228c
commit
fa09c8af61
@ -184,6 +184,7 @@ static esp_err_t load_partitions()
|
|||||||
} else {
|
} else {
|
||||||
SLIST_INSERT_AFTER(last, item, next);
|
SLIST_INSERT_AFTER(last, item, next);
|
||||||
}
|
}
|
||||||
|
last = item;
|
||||||
}
|
}
|
||||||
spi_flash_munmap(handle);
|
spi_flash_munmap(handle);
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user