Добавляем в параметр ip[] до 15 пинов

This commit is contained in:
2022-01-05 23:39:04 +03:00
parent 044867ca00
commit c2010c4979

View File

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