feat: 实现时间同步、NVS稳定性修复和ESP-IDF v6.0兼容性改进
This commit is contained in:
11
main/nvs_safety/nvs_safety.h
Normal file
11
main/nvs_safety/nvs_safety.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user