From c91f56171b3728f0b5d76e1f04771494d8d6032f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 26 Dec 2025 22:34:22 -1000 Subject: [PATCH] Update esphome/components/ota/ota_backend_esp8266.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- esphome/components/ota/ota_backend_esp8266.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/ota/ota_backend_esp8266.cpp b/esphome/components/ota/ota_backend_esp8266.cpp index f41e7a2b2d..51a3f99da8 100644 --- a/esphome/components/ota/ota_backend_esp8266.cpp +++ b/esphome/components/ota/ota_backend_esp8266.cpp @@ -334,9 +334,9 @@ bool ESP8266OTABackend::verify_end_() { return false; } -// Check if new firmware's flash size fits (only when auto-detection is disabled) -// With FLASH_MAP_SUPPORT (modern cores), flash size is auto-detected from chip #if !FLASH_MAP_SUPPORT + // Check if new firmware's flash size fits (only when auto-detection is disabled) + // With FLASH_MAP_SUPPORT (modern cores), flash size is auto-detected from chip // NOLINTNEXTLINE(readability-static-accessed-through-instance) uint32_t bin_flash_size = ESP.magicFlashChipSize((bytes[3] & 0xf0) >> 4); // NOLINTNEXTLINE(readability-static-accessed-through-instance)