12 lines
307 B
C
12 lines
307 B
C
#pragma once
|
|
|
|
#include "esp_err.h"
|
|
|
|
/**
|
|
* Check integrity of critical NVS namespaces at startup.
|
|
* Detects corrupted entries and attempts automatic repair.
|
|
*
|
|
* @return ESP_OK if all namespaces are healthy, ESP_ERR_INVALID_STATE if corruption was found and repaired
|
|
*/
|
|
esp_err_t nvs_safety_check(void);
|