mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 07:02:17 +03:00
Working version
This commit is contained in:
@@ -112,7 +112,7 @@ void sendLogData(String file, String topic) {
|
||||
}
|
||||
}
|
||||
|
||||
void clean_log_date() {
|
||||
void cleanLogAndData() {
|
||||
#ifdef ESP8266
|
||||
auto dir = LittleFS.openDir("logs");
|
||||
while (dir.next()) {
|
||||
@@ -121,5 +121,6 @@ void clean_log_date() {
|
||||
removeFile("logs/" + fname);
|
||||
}
|
||||
removeFile("live.json");
|
||||
configLiveJson = "";
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user