From c2010c4979368cd794edc85bc859f28b05795aa4 Mon Sep 17 00:00:00 2001 From: biver Date: Wed, 5 Jan 2022 23:39:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B2=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D1=80=20ip[]=20=D0=B4=D0=BE=2015=20=D0=BF=D0=B8=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/Class/LineParsing.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/Class/LineParsing.h b/include/Class/LineParsing.h index ff8a3965..dee7f7d1 100644 --- a/include/Class/LineParsing.h +++ b/include/Class/LineParsing.h @@ -127,6 +127,7 @@ class LineParsing { } if (_pin != "") { + /* if (_pin.indexOf(",") == -1) { if (!isPinExist(_pin.toInt()) || !isDigitStr(_pin)) { pinErrors++; @@ -139,6 +140,17 @@ class LineParsing { pinErrors++; _pin = ""; } + }*/ + + String tmpstr; + for (int i=0; i<15; i++) { + tmpstr = selectFromMarkerToMarker(_pin, ",", i); + if(tmpstr == "not found") break; + if(!isDigitStr(tmpstr) || !isPinExist(tmpstr.toInt())){ + pinErrors++; + _pin = ""; + break; + } } }