summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-12 14:07:22 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-19 11:36:42 +0200
commit4068ee30a5e041a8e65634ed65c6bbd51a3687dd (patch)
treec148fa01998ee300dc6f8b4c0b8b19a823c662cb /CAN-binder/low-can-binding
parenta941db78166c4b77f9b7a6777f2fe1038ea0b027 (diff)
Fix: vector throw length error exception.
Message set count members as to be changed because now useless... This is left part from OpenXC port. Change-Id: I3a3dc6091b49eabf0d17324634406bd7b0edafb2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding')
-rw-r--r--CAN-binder/low-can-binding/can/can-message-set.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/CAN-binder/low-can-binding/can/can-message-set.cpp b/CAN-binder/low-can-binding/can/can-message-set.cpp
index 7ee2a01..063ca27 100644
--- a/CAN-binder/low-can-binding/can/can-message-set.cpp
+++ b/CAN-binder/low-can-binding/can/can-message-set.cpp
@@ -50,12 +50,13 @@ std::vector<std::shared_ptr<can_message_definition_t> > can_message_set_t::get_c
std::vector<std::shared_ptr<can_signal_t> > can_message_set_t::get_can_signals() const
{
- std::vector<std::shared_ptr<can_signal_t> > can_signals(can_signal_count_);
+ std::vector<std::shared_ptr<can_signal_t> > can_signals;
for(const auto& cmd: can_messages_definition_)
{
+ std::vector<std::shared_ptr<can_signal_t> > cmd_signals = cmd->get_can_signals();
can_signals.insert( can_signals.end(),
- cmd->get_can_signals().begin(),
- cmd->get_can_signals().end()
+ cmd_signals.begin(),
+ cmd_signals.end()
);
}