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.
pull/407/head
Ivan Grokhotkov 2017-03-04 15:34:03 +08:00
rodzic 66552c228c
commit fa09c8af61
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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;