rollback
Going back to the previous working firmware when a new one fails.
Rollback reverts the boot selection to the last image marked valid, triggered automatically after a failed trial boot or explicitly by the application.
Examples
A new image that fails its self-test calls
esp_ota_mark_app_invalid_rollback_and_reboot(), and the fan controller restarts into 1.4.0 from the other slot.A watchdog reset during a hung trial boot also ends in a rollback, because the image is still pending.
See also