还有如果顺坏,是不是判断info返回参数就能发现顺坏
Code: Select all
err = esp_spiffs_info(conf.partition_label, &total, &used);
if (err != ESP_OK || used > total)
{
esp_spiffs_check(conf.partition_label);
esp_restart();//重启设备
}
Code: Select all
err = esp_spiffs_info(conf.partition_label, &total, &used);
if (err != ESP_OK || used > total)
{
esp_spiffs_check(conf.partition_label);
esp_restart();//重启设备
}
Users browsing this forum: Bing [Bot] and 73 guests