]> granicus.if.org Git - esp-idf/commit
bootloader: Fix issue - bs->app_count is zero but ota_data have valid entry
authorKonstantin Kondrashov <konstantin@espressif.com>
Tue, 24 Jul 2018 05:09:32 +0000 (13:09 +0800)
committerKonstantin Kondrashov <konstantin@espressif.com>
Tue, 24 Jul 2018 05:09:32 +0000 (13:09 +0800)
commit8c808c2d9a1a024a5419711b794cd59ce6dc6c20
tree96fe1718a9284800a7442a806908d23a1ae9ec28
parentbaa4613fc149429796acd951f586cd2397758ce7
bootloader: Fix issue - bs->app_count is zero but ota_data have valid entry

If we have the partition table without any ota_apps but in ota_data have
valide entry, in this case we get an error(hang). This commit fix this
case. If bs->app_count is zero when selecting the factory app.

Closes https://github.com/espressif/esp-idf/issues/2218
components/bootloader_support/src/bootloader_utility.c