278 Исправлена ошибка логгирования на esp01 и esp32

This commit is contained in:
Dmitry Borisenko
2021-01-06 04:42:23 +01:00
parent e1b96cd287
commit cbf0d372c9
5 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@@ -43,7 +43,7 @@
},
{
"type": "h4",
"title": "Версия файловой системы: 277"
"title": "Версия файловой системы: 278"
},
{
"type": "h4",

View File

@@ -1,6 +1,6 @@
#pragma once
#define FIRMWARE_VERSION 277
#define FIRMWARE_VERSION 278
#ifdef esp8266_4mb
#define FIRMWARE_NAME "esp8266_4mb"

View File

@@ -11,7 +11,7 @@
;To choose board please use one of definition:
;esp8266_1mb , esp8266_4mb , esp32_4mb
[platformio]
default_envs = esp8266_4mb
default_envs = esp8266_1mb
[common_env_data]

View File

@@ -48,7 +48,7 @@ void LoggingClass::execute(String keyOrValue) {
}
}
String filename = "logs/" + _key + ".txt";
String filename = "/logs/" + _key + ".txt";
size_t cnt = countLines(filename);
size_t sz = getFileSize(filename);
@@ -128,7 +128,7 @@ void choose_log_date_and_send() {
String all_line = logging_KeyList;
while (all_line.length() != 0) {
String tmp = selectToMarker(all_line, ",");
sendLogData("logs/" + tmp + ".txt", tmp);
sendLogData("/logs/" + tmp + ".txt", tmp);
all_line = deleteBeforeDelimiter(all_line, ",");
}
}