mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-31 04:19:15 +03:00
Удаляем русские символы из кода!!!!
This commit is contained in:
@@ -158,18 +158,18 @@ class Loging : public IoTItem {
|
||||
logData = logData + ",";
|
||||
String path = "/lg/" + id + "/" + String(unixTimeShort) + ".txt"; // создадим путь вида /lg/id/133256622333.txt
|
||||
// создадим пустой файл
|
||||
if (writeEmptyFile(path) != "sucсess") {
|
||||
if (writeEmptyFile(path) != "success") {
|
||||
SerialPrint("E", F("Loging"), "'" + id + "' file writing error, return");
|
||||
return;
|
||||
}
|
||||
|
||||
// запишем в него данные
|
||||
if (addFile(path, logData) != "sucсess") {
|
||||
if (addFile(path, logData) != "success") {
|
||||
SerialPrint("E", F("Loging"), "'" + id + "' data writing error, return");
|
||||
return;
|
||||
}
|
||||
// запишем путь к нему в базу данных
|
||||
if (saveDataDB(id, path) != "sucсess") {
|
||||
if (saveDataDB(id, path) != "success") {
|
||||
SerialPrint("E", F("Loging"), "'" + id + "' db file writing error, return");
|
||||
return;
|
||||
}
|
||||
@@ -178,7 +178,7 @@ class Loging : public IoTItem {
|
||||
|
||||
void addNewDataToExistingFile(String &path, String &logData) {
|
||||
logData = logData + ",";
|
||||
if (addFile(path, logData) != "sucсess") {
|
||||
if (addFile(path, logData) != "success") {
|
||||
SerialPrint("i", F("Loging"), "'" + id + "' file writing error, return");
|
||||
return;
|
||||
};
|
||||
|
||||
@@ -71,7 +71,7 @@ const String writeFile(const String& filename, const String& str) {
|
||||
}
|
||||
file.print(str);
|
||||
file.close();
|
||||
return "sucсess";
|
||||
return "success";
|
||||
onFlashWrite();
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ const String writeEmptyFile(const String& filename) {
|
||||
return "failed";
|
||||
}
|
||||
file.close();
|
||||
return "sucсess";
|
||||
return "success";
|
||||
onFlashWrite();
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ const String addFileLn(const String& filename, const String& str) {
|
||||
}
|
||||
file.println(str);
|
||||
file.close();
|
||||
return "sucсess";
|
||||
return "success";
|
||||
onFlashWrite();
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ const String addFile(const String& filename, const String& str) {
|
||||
}
|
||||
file.print(str);
|
||||
file.close();
|
||||
return "sucсess";
|
||||
return "success";
|
||||
onFlashWrite();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user