]> granicus.if.org Git - esp-idf/commit
spi_flash: load partition table before adding an external partition
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 30 Sep 2019 14:11:09 +0000 (16:11 +0200)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 30 Sep 2019 14:11:09 +0000 (16:11 +0200)
commitccde8c7d2f02abcb25dc17a053f5db36b95e03cc
tree9ff85e43cccfde37227c3b2590095f0afc32e42f
parent1c1108d47bde78f230528ced6ef83657ab7175e5
spi_flash: load partition table before adding an external partition

esp_partition_register_external did not call load_partitions, so if
it was called before any call to esp_partition_find, then the main
partition table would never be loaded. Introduce new function,
ensure_partitions_loaded, and call it both from esp_partition_find and
esp_partition_register_external.

Closes https://github.com/espressif/esp-idf/issues/4116
components/spi_flash/partition.c