implement reset via back button

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2026-01-18 10:58:24 +01:00
parent 1fbc28a628
commit 7a73fc4b7b
4 changed files with 108 additions and 4 deletions

View File

@@ -28,6 +28,15 @@ extern "C"
bool initialized;
} persistence_manager_t;
/**
* @brief Erases the entire NVS flash (factory reset).
*
* Warning: This will remove all stored data and namespaces!
*
* @return esp_err_t ESP_OK on success, otherwise error code.
*/
esp_err_t persistence_manager_factory_reset(void);
/**
* @brief Initialize the persistence manager with a given NVS namespace.
*