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; + } } }