remove trailing digits from ident instead of only 0 when matching scan config file name

This commit is contained in:
john30
2015-12-01 07:26:34 +01:00
parent ce4bc56412
commit 5f50c99cb0
+2 -2
View File
@@ -767,9 +767,9 @@ result_t loadScanConfigFile(MessageMap* messages, unsigned char address, SymbolS
matches = true; matches = true;
break; break;
} }
if (remain[remain.length()-1]!='0') if (remain[remain.length()-1]<'0' || remain[remain.length()-1]>'9')
break; break;
remain.erase(remain.length()-1); remain.erase(remain.length()-1); // remove trailing digit
} }
if (matches) if (matches)
match += remain.length(); match += remain.length();