Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
diag_mngr: No diagnostic msg if no diagnostic_bus
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
binding
/
application.cpp
diff --git
a/low-can-binding/binding/application.cpp
b/low-can-binding/binding/application.cpp
index
0b8963c
..
c5dfa1b
100644
(file)
--- a/
low-can-binding/binding/application.cpp
+++ b/
low-can-binding/binding/application.cpp
@@
-71,10
+71,13
@@
int application_t::add_message_set(std::shared_ptr<message_set_t> new_message_se
return -1;
}
return -1;
}
-
for(auto new_diag_msg : new_message_set->get_diagnostic_messages
())
+
if(diagnostic_manager_.is_initialized
())
{
{
- if(old_msg_set->add_diagnostic_message(new_diag_msg) < 0)
- return -1;
+ for(auto new_diag_msg : new_message_set->get_diagnostic_messages())
+ {
+ if(old_msg_set->add_diagnostic_message(new_diag_msg) < 0)
+ return -1;
+ }
}
return 0;
}
}
return 0;
}