mirror of
https://github.com/esphome/esphome.git
synced 2026-09-22 04:28:43 +00:00
convention is nulltr
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user