mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 16:18:41 +00:00
convention is nulltr
This commit is contained in:
@@ -373,8 +373,8 @@ OTAResponseTypes IDFOTABackend::update_partition_table() {
|
||||
|
||||
// Write otadata to set the new boot partition
|
||||
const esp_partition_t *new_boot_partition = 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);
|
||||
const esp_partition_info_t *new_part =
|
||||
&new_partition_table[new_app_part_index == -1 ? new_app_part_index_with_copy : new_app_part_index];
|
||||
|
||||
Reference in New Issue
Block a user