From b649850e806ae1e0d8870177671565bcd6aa2217 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 29 Apr 2026 12:34:51 -0500 Subject: [PATCH] convention is nulltr --- esphome/components/ota/ota_backend_esp_idf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/ota/ota_backend_esp_idf.cpp b/esphome/components/ota/ota_backend_esp_idf.cpp index 8cf788da4d5..441953497f0 100644 --- a/esphome/components/ota/ota_backend_esp_idf.cpp +++ b/esphome/components/ota/ota_backend_esp_idf.cpp @@ -324,8 +324,8 @@ OTAResponseTypes IDFOTABackend::update_partition_table() { // Copy the running app partition to new position if needed if (new_app_part_index == -1) { const esp_partition_t *running_app_part = nullptr; - esp_partition_iterator_t it = esp_partition_find(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_ANY, NULL); - while (it != NULL) { + esp_partition_iterator_t it = esp_partition_find(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_ANY, nullptr); + while (it != nullptr) { const esp_partition_t *p = esp_partition_get(it); if (p->address == running_app_offset && p->size >= running_app_size) { running_app_part = p;