mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
replace c-casts
This commit is contained in:
@@ -280,7 +280,8 @@ OTAResponseTypes IDFOTABackend::update_partition_table() {
|
||||
// Found the otadata partition in the new partition table
|
||||
otadata_partition_found = true;
|
||||
otadata_overlap = check_overlap(running_app_offset, running_app_size, new_part->pos.offset, new_part->pos.size);
|
||||
} else if (new_part->subtype == ESP_PARTITION_SUBTYPE_DATA_NVS && strcmp((char *) new_part->label, "nvs") == 0) {
|
||||
} else if (new_part->subtype == ESP_PARTITION_SUBTYPE_DATA_NVS &&
|
||||
strncmp(reinterpret_cast<const char *>(new_part->label), "nvs", sizeof(new_part->label)) == 0) {
|
||||
// Found the nvs partition in the new partition table
|
||||
nvs_partition_found = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user