diff --git a/data/set.device.json.gz b/data/set.device.json.gz index 3a067824..b11dbbb7 100644 Binary files a/data/set.device.json.gz and b/data/set.device.json.gz differ diff --git a/data_ungzip/set.device.json b/data_ungzip/set.device.json index 6b1b055b..e7c0b946 100644 --- a/data_ungzip/set.device.json +++ b/data_ungzip/set.device.json @@ -43,7 +43,7 @@ }, { "type": "h4", - "title": "Версия файловой системы: 276" + "title": "Версия файловой системы: 277" }, { "type": "h4", diff --git a/include/Class/LineParsing.h b/include/Class/LineParsing.h index f3553ad4..10cf73bd 100644 --- a/include/Class/LineParsing.h +++ b/include/Class/LineParsing.h @@ -112,10 +112,18 @@ class LineParsing { } if (_pin != "") { - if (!isPinExist(_pin.toInt()) || !isDigitStr(_pin)) { - pinErrors++; - Serial.println("'" + _pin + "'"); - _pin = ""; + if (_pin.indexOf(",") == -1) { + if (!isPinExist(_pin.toInt()) || !isDigitStr(_pin)) { + pinErrors++; + _pin = ""; + } + } else { + String pin1 = selectToMarker(_pin, ","); + String pin2 = deleteBeforeDelimiter(_pin, ","); + if (!isPinExist(pin1.toInt()) || !isDigitStr(pin1) || !isPinExist(pin2.toInt()) || !isDigitStr(pin2)) { + pinErrors++; + _pin = ""; + } } } diff --git a/include/Consts.h b/include/Consts.h index a4bb9c2a..ef804367 100644 --- a/include/Consts.h +++ b/include/Consts.h @@ -1,6 +1,6 @@ #pragma once -#define FIRMWARE_VERSION 276 +#define FIRMWARE_VERSION 277 #ifdef esp8266_4mb #define FIRMWARE_NAME "esp8266_4mb"