Skip to content

Commit

Permalink
remove trailing digits from ident instead of only 0 when matching sca…
Browse files Browse the repository at this point in the history
…n config file name
  • Loading branch information
john30 committed Dec 1, 2015
1 parent ce4bc56 commit 5f50c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ebusd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,9 @@ result_t loadScanConfigFile(MessageMap* messages, unsigned char address, SymbolS
matches = true;
break;
}
if (remain[remain.length()-1]!='0')
if (remain[remain.length()-1]<'0' || remain[remain.length()-1]>'9')
break;
remain.erase(remain.length()-1);
remain.erase(remain.length()-1); // remove trailing digit
}
if (matches)
match += remain.length();
Expand Down

0 comments on commit 5f50c99

Please sign in to comment.