From eff13bedd5da52fb0e356ac6f2b4b88fa20ddb39 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 29 Apr 2026 12:34:46 -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 bfd469bd73..8cf788da4d 100644 --- a/esphome/components/ota/ota_backend_esp_idf.cpp +++ b/esphome/components/ota/ota_backend_esp_idf.cpp @@ -271,8 +271,8 @@ OTAResponseTypes IDFOTABackend::update_partition_table() { // Check if there is an app partition in the old partition table at the right offset // This is for esp_partition_copy and won't be needed after implementing a better copy function in the future. // First match wins for determinism; stop searching as soon as a suitable pair is found. - 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 == new_part->pos.offset && p->size >= running_app_size) { // Found a suitable pair of partitions in the old and new partition table to copy the running app to