убераем лишние serial print

This commit is contained in:
Dmitry Borisenko
2022-09-18 22:48:27 +02:00
parent 2f2e2d9755
commit e1b4ffa574
5 changed files with 10 additions and 13 deletions

View File

@@ -402,7 +402,7 @@
"num": 30
},
{
"name": "31. Кнопка управляющая пином (Реле)",
"name": "31. Управление пином",
"type": "Writing",
"subtype": "ButtonOut",
"id": "btn",
@@ -455,16 +455,18 @@
"num": 34
},
{
"name": "35. PWM ESP8266",
"name": "35. PWM ESP32",
"type": "Writing",
"subtype": "Pwm8266",
"subtype": "Pwm32",
"id": "pwm",
"widget": "range",
"page": "Кнопки",
"descr": "PWM",
"int": 0,
"pin": 15,
"pin": 2,
"freq": 5000,
"ledChannel": 2,
"PWM_resolution": 10,
"val": 0,
"apin": -1,
"num": 35

View File

@@ -21,7 +21,7 @@
},
"projectProp": {
"platformio": {
"default_envs": "esp8266_4mb",
"default_envs": "esp32_4mb",
"data_dir": "data_svelte"
}
},

View File

@@ -41,7 +41,7 @@ build_src_filter =
${env:esp32_4mb_fromitems.build_src_filter}
[platformio]
default_envs = esp8266_4mb
default_envs = esp32_4mb
data_dir = data_svelte
[common_env_data]

View File

@@ -22,7 +22,7 @@ void* getAPI_ButtonOut(String subtype, String params);
void* getAPI_IoTServo(String subtype, String params);
void* getAPI_Mcp23017(String subtype, String params);
void* getAPI_Mp3(String subtype, String params);
void* getAPI_Pwm8266(String subtype, String params);
void* getAPI_Pwm32(String subtype, String params);
void* getAPI_TelegramLT(String subtype, String params);
void* getAPI_Lcd2004(String subtype, String params);
@@ -50,7 +50,7 @@ if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_IoTServo(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Mcp23017(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Mp3(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Pwm8266(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Pwm32(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_TelegramLT(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI;
return nullptr;

View File

@@ -44,7 +44,6 @@ class Loging : public IoTItem {
}
void doByInterval() {
SerialPrint("E", F("Loging"), "----------------------start loging cycle----------------------------");
//если объект логгирования не был создан
if (!isItemExist(logid)) {
SerialPrint("E", F("Loging"), "'" + id + "' loging object not exist, return");
@@ -102,7 +101,6 @@ class Loging : public IoTItem {
}
//запускаем процедуру удаления старых файлов если память переполняется
deleteLastFile();
SerialPrint("E", F("Loging"), "----------------------compl loging cycle----------------------------");
}
void createNewFileWithData(String &logData) {
@@ -150,8 +148,6 @@ class Loging : public IoTItem {
}
void sendChart() {
SerialPrint("E", F("Loging"), "----------------------start send chart----------------------------");
String dir = "/lg/" + id;
filesList = getFilesList(dir);
@@ -189,7 +185,6 @@ class Loging : public IoTItem {
if (noData) {
cleanChart();
}
SerialPrint("E", F("Loging"), "----------------------compl send chart----------------------------");
}
void cleanChart() {