aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-15 00:43:59 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:21:57 +0100
commit473b167761147a4cb36af86fea8e8c54bdf03d14 (patch)
tree619122fe313ccf40b87b61289f2252283b49d38c /src/utils
parent671d774d22050b939439ebc56d25db2569d00554 (diff)
Search signals against name not generic_name. It's made
to get able to get difference between classic CAN messages and diagnostic messages based on name signals prefix. Change-Id: I696facc58f38150e0457d519dcabffba750a8db3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/signals.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/signals.hpp b/src/utils/signals.hpp
index 00b9e3e..f68f566 100644
--- a/src/utils/signals.hpp
+++ b/src/utils/signals.hpp
@@ -57,9 +57,9 @@ void lookup_signals_by_name(const std::string& key, std::vector<T>& signals, std
for(T& s : signals)
{
if(::fnmatch(key.c_str(), s.get_generic_name().c_str(), FNM_CASEFOLD) == 0)
- found_signals_name.push_back(s.get_generic_name());
+ found_signals_name.push_back(s.get_name());
if(::fnmatch(key.c_str(), s.get_name().c_str(), FNM_CASEFOLD) == 0)
- found_signals_name.push_back(s.get_generic_name());
+ found_signals_name.push_back(s.get_name());
}
}