исправление вывода лога в режиме AP

This commit is contained in:
DmitriyTychina
2023-09-20 13:02:27 +03:00
parent d4bdcc13ff
commit fe9789fc52
5 changed files with 22 additions and 11 deletions

View File

@@ -11,11 +11,11 @@ void SerialPrint(const String& errorLevel, const String& module, const String& m
tosend += msg;
Serial.println(tosend);
if (isNetworkActive()) {
if (jsonReadInt(settingsFlashJson, F("log")) != 0) {
sendStringToWs(F("corelg"), tosend, -1);
}
// if (isNetworkActive()) { // все проверки происходят в sendStringToWs()
if (jsonReadInt(settingsFlashJson, F("log")) != 0) {
sendStringToWs(F("corelg"), tosend, -1);
}
// }
if (errorLevel == "E") {
cleanString(tosend);