From 58dda55c30a840b52500859034655958bbc7dc4d Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Sun, 7 Sep 2025 21:44:23 +0100 Subject: [PATCH] fix(bootloader): Add missing typedef to esp_image_spi_freq_t enum The enum declaration for esp_image_spi_freq_t was missing the typedef keyword, causing it to declare a global variable instead of a type definition. This resulted in multiple definition linker errors when the header was included in multiple compilation units. This commit adds the missing typedef to make it consistent with other enum declarations in the same file and resolves the linker errors. --- components/bootloader_support/include/esp_image_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bootloader_support/include/esp_image_format.h b/components/bootloader_support/include/esp_image_format.h index c427cffa4..98e7bf238 100644 --- a/components/bootloader_support/include/esp_image_format.h +++ b/components/bootloader_support/include/esp_image_format.h @@ -37,7 +37,7 @@ typedef enum { } esp_image_spi_mode_t; /* SPI flash clock frequency */ -enum { +typedef enum { ESP_IMAGE_SPI_SPEED_40M, ESP_IMAGE_SPI_SPEED_26M, ESP_IMAGE_SPI_SPEED_20M,