mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-06-06 02:36:49 +08:00
Fix WDT error message when doing formating
Some checks failed
build-ci / build (push) Failing after 1m8s
Some checks failed
build-ci / build (push) Failing after 1m8s
Bum version
This commit is contained in:
parent
3f60af3ac1
commit
6e439231e3
@ -202,7 +202,11 @@ void ESP3DHal::checkTWDT() {
|
||||
// Watchdog feeder
|
||||
void ESP3DHal::wdtFeed() {
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
vTaskDelay(1);
|
||||
if (esp_task_wdt_status(NULL) == ESP_OK) {
|
||||
vTaskDelay(1);
|
||||
} else {
|
||||
delay(1);
|
||||
}
|
||||
return;
|
||||
#endif // ARDUINO_ARCH_ESP32
|
||||
#ifdef ARDUINO_ARCH_ESP8266
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define _VERSION_ESP3D_H
|
||||
|
||||
// version and sources location
|
||||
#define FW_VERSION "3.0.0.5b1"
|
||||
#define FW_VERSION "3.0.0.6b1"
|
||||
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
|
||||
|
||||
#endif //_VERSION_ESP3D_H
|
||||
|
@ -23,7 +23,9 @@ littlefs_esp32_filesystem.cpp - ESP3D littlefs filesystem configuration class
|
||||
defined(ARDUINO_ARCH_ESP32)
|
||||
#include <FS.h>
|
||||
#include <LittleFS.h>
|
||||
|
||||
extern "C" {
|
||||
#include "esp_littlefs.h"
|
||||
}
|
||||
#include <stack>
|
||||
|
||||
#include "../esp_filesystem.h"
|
||||
@ -58,7 +60,9 @@ bool ESP_FileSystem::rename(const char *oldpath, const char *newpath) {
|
||||
const char *ESP_FileSystem::FilesystemName() { return "LittleFS"; }
|
||||
|
||||
bool ESP_FileSystem::format() {
|
||||
bool res = LittleFS.format();
|
||||
//Use directly the function to avoid any wdt issue
|
||||
// bool res = LittleFS.format();
|
||||
bool res = (ESP_OK == esp_littlefs_format("spiffs"));
|
||||
if (res) {
|
||||
res = begin();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user