From e0bb6d58e8ef81e0e27f382f54a5dea29546462c Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Sun, 27 Dec 2020 01:26:19 +0100 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC?= =?UTF-8?q?=D0=B0=20=D1=81=20=D0=B4=D1=80=D0=BE=D0=B1=D0=BD=D1=8B=D0=BC?= =?UTF-8?q?=D0=B8=20=D1=87=D0=B8=D1=81=D0=BB=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/Consts.h | 4 ++-- platformio.ini | 2 +- src/items/vLogging.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/Consts.h b/include/Consts.h index fd4b8f24..a0b8d159 100644 --- a/include/Consts.h +++ b/include/Consts.h @@ -2,9 +2,9 @@ //===========Firmware============================================================================================================================================= #define FIRMWARE_VERSION 274 -#define ESP8266_FLASH_SIZE_1MB false +#define ESP8266_FLASH_SIZE_1MB true //===========FileSystem============================================================================================================================================== -#define USE_LITTLEFS true +#define USE_LITTLEFS false //================================================================================================================================================================== #define NUM_BUTTONS 6 #define LED_PIN LED_BUILTIN diff --git a/platformio.ini b/platformio.ini index 5ce94223..1e8b8ece 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,7 +9,7 @@ ; https://docs.platformio.org/page/projectconf.html [platformio] -default_envs = esp8266 +default_envs = esp8266_01_1m [common_env_data] lib_deps_external = diff --git a/src/items/vLogging.cpp b/src/items/vLogging.cpp index 3593afa4..49b23c26 100644 --- a/src/items/vLogging.cpp +++ b/src/items/vLogging.cpp @@ -36,8 +36,8 @@ void LoggingClass::execute(String keyOrValue) { } else { SerialPrint("E", "Logging", "This value not found on this device"); } - } else { //прилетело из события - if (isDigitStr(keyOrValue)) { //если это число + } else { //прилетело из события + if (isDigitStr(keyOrValue) || keyOrValue.indexOf(".") != -1) { //если это число или дробное число loggingValue = keyOrValue; } else { //если это ключ if (getValue(_loggingValueKey) != "no value") {