Merge branch 'master' of github.com:john30/ebusd

This commit is contained in:
john30
2015-12-05 10:46:57 +01:00
+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();