mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 00:28:39 +00:00
87f152965dfcc2db1deb185b941b02e3c47e2a9c
The PartitionTablePlan field that drives the optional app copy stores the partition that will receive the running app (i.e. the destination in the current table at the new slot's flash offset). The old name ``copy_source_part`` described the value backwards and risked future callers swapping the esp_partition_copy() arguments; renamed to ``copy_dest_part`` along with the matching local ``app_copy_dest_part`` and the comments around them. Also replace esp_ota_get_running_partition() in the copy path with find_app_partition_at(running_app_offset, running_app_size). The IDF call can return nullptr after a prior aborted partition-table OTA in the same boot called esp_partition_unload_all() (the same condition the cache in get_running_app_position() exists for); the previous code would have dereferenced nullptr on the retry that the client error message explicitly suggests. No functional change on the success path; nullptr deref on the failed- retry path is now reported as OTA_RESPONSE_ERROR_PARTITION_TABLE_UPDATE.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
594 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
