bootloader_support: fix logging prints around chip revision

This commit is contained in:
Mahavir Jain
2019-10-11 14:35:22 +05:30
parent 420ee45279
commit 99659091fb
4 changed files with 14 additions and 8 deletions

View File

@@ -132,7 +132,7 @@ static esp_err_t bootloader_main(void)
/* Check chip ID and minimum chip revision that supported by this image */
uint8_t revision = bootloader_common_get_chip_revision();
ESP_LOGI(TAG, "Chip Revision: %d", revision);
if (bootloader_common_check_chip_validity(&fhdr) != ESP_OK) {
if (bootloader_common_check_chip_validity(&fhdr, ESP_IMAGE_BOOTLOADER) != ESP_OK) {
return ESP_FAIL;
}