From 11564511c15a38e338f0609d7f3fb4452883a4f5 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 10 May 2017 09:59:00 +0200 Subject: CAN message will not be modified once read. So use const value Change-Id: I81f9a4766d71116e2f3a2af8785b1bd1c69e2c20 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/can/can-decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CAN-binder/low-can-binding/can/can-decoder.cpp') diff --git a/CAN-binder/low-can-binding/can/can-decoder.cpp b/CAN-binder/low-can-binding/can/can-decoder.cpp index 442e3738..2ccbbb8e 100644 --- a/CAN-binder/low-can-binding/can/can-decoder.cpp +++ b/CAN-binder/low-can-binding/can/can-decoder.cpp @@ -153,7 +153,7 @@ openxc_DynamicField decoder_t::stateDecoder(can_signal_t& signal, /// The decoder returns an openxc_DynamicField, which may contain a number, /// string or boolean. /// -openxc_DynamicField decoder_t::translateSignal(can_signal_t& signal, can_message_t& message, +openxc_DynamicField decoder_t::translateSignal(can_signal_t& signal, const can_message_t& message, const std::vector& signals, bool* send) { float value = decoder_t::parseSignalBitfield(signal, message); -- cgit 1.2.3-korg