#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);