From e914a50b0bd655de77a6c0225c6ede7cbd0e606f Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 2 Mar 2017 22:34:23 +0100 Subject: Fix: Wrong set up of vector. Change-Id: Id9fa04541a62714802a64492e3981b204756212e Signed-off-by: Romain Forlot --- src/can-signals.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/can-signals.cpp b/src/can-signals.cpp index 3832c331..5e8818b9 100644 --- a/src/can-signals.cpp +++ b/src/can-signals.cpp @@ -23,7 +23,10 @@ #include "low-can-binding.hpp" std::vector> CAN_MESSAGES = { - {{0x620, CanMessageFormat::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL}}, + { + {0x620, CanMessageFormat::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL}, + {0x442, CanMessageFormat::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL}, + }, }; /** @@ -31,7 +34,10 @@ std::vector> CAN_MESSAGES = { * SIGNALS[MESSAGE_SET_ID][CanSignal] */ std::vector> SIGNALS = { - {{&(CAN_MESSAGES[0][0]), "can.driver_door.open", 2, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL}}, + { + {&(CAN_MESSAGES[MESSAGE_SET_ID][0]), "can.driver_door.open", 2, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL}, + {&(CAN_MESSAGES[MESSAGE_SET_ID][1]), "can.driver_door.close", 2, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL} + }, }; /** -- cgit 1.2.3-korg