convention is nulltr

This commit is contained in:
J. Nick Koston
2026-04-29 12:34:39 -05:00
parent 9b3f8f6f6e
commit 694f1947ee
2 changed files with 3 additions and 3 deletions
@@ -109,8 +109,8 @@ void ESPHomeOTAComponent::dump_config() {
this->running_app_size_);
#ifdef USE_ESP32
ESP_LOGCONFIG(TAG, " Partition table:");
esp_partition_iterator_t it = esp_partition_find(ESP_PARTITION_TYPE_ANY, ESP_PARTITION_SUBTYPE_ANY, NULL);
while (it != NULL) {
esp_partition_iterator_t it = esp_partition_find(ESP_PARTITION_TYPE_ANY, ESP_PARTITION_SUBTYPE_ANY, nullptr);
while (it != nullptr) {
const esp_partition_t *p = esp_partition_get(it);
ESP_LOGCONFIG(TAG, " %s: type=0x%X, subtype=0x%X, address=0x%X, size=0x%X", p->label, p->type, p->subtype,
p->address, p->size);
@@ -203,7 +203,7 @@ OTAResponseTypes IDFOTABackend::update_partition_table() {
}
// Verify existing partition table
const esp_partition_info_t *existing_partition_table = NULL;
const esp_partition_info_t *existing_partition_table = nullptr;
esp_partition_mmap_handle_t partition_table_map;
err = esp_partition_mmap(this->partition_table_part_, 0, ESP_PARTITION_TABLE_MAX_LEN, ESP_PARTITION_MMAP_DATA,
(const void **) &existing_partition_table, &partition_table_map);