From 53d619a36f8f1e99b3a67d3186de70f4429a1a77 Mon Sep 17 00:00:00 2001 From: Pechorin <68288919+Spider-From-Mars@users.noreply.github.com> Date: Wed, 14 Jan 2026 13:35:18 +0500 Subject: [PATCH] doc: clarify NULL return value of esp_ota_get_last_invalid_partition Clarified return value of esp_ota_get_last_invalid_partition function. --- components/app_update/include/esp_ota_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/app_update/include/esp_ota_ops.h b/components/app_update/include/esp_ota_ops.h index 029a7db4734..c64acde2c40 100644 --- a/components/app_update/include/esp_ota_ops.h +++ b/components/app_update/include/esp_ota_ops.h @@ -362,7 +362,7 @@ esp_err_t esp_ota_mark_app_invalid_rollback_and_reboot(void); /** * @brief Returns last partition with invalid state (ESP_OTA_IMG_INVALID or ESP_OTA_IMG_ABORTED). * - * @return partition. + * @return Pointer to the last invalid partition, or NULL if no invalid partition is recorded. */ const esp_partition_t* esp_ota_get_last_invalid_partition(void);