summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-11-20 19:38:15 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-11-22 11:10:26 +0100
commit6d52fb871953e3c0219a8dd1c4a62fc3143925df (patch)
tree19df3755c22a76a60f71a8e285a6e4fcf93daecb
parent731624acf76d58e1847f797e15747ccc94c052f0 (diff)
Adjust "encoder" signature to fit cpp usage
Adjust "encoder" signature to fit cpp usage like for the decoder functions. Change-Id: I5872c5e32fd69356124fefbc82fd1f77ab8acbf4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--low-can-binding/can/can-signals.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/low-can-binding/can/can-signals.hpp b/low-can-binding/can/can-signals.hpp
index 31e0c6a6..331acddb 100644
--- a/low-can-binding/can/can-signals.hpp
+++ b/low-can-binding/can/can-signals.hpp
@@ -61,8 +61,8 @@ typedef openxc_DynamicField (*signal_decoder)(can_signal_t& signal, float value,
/// @param[out] send - An output parameter. If the encoding failed or the CAN signal should
/// not be encoded for some other reason, this will be flipped to false.
///
-typedef uint64_t (*signal_encoder)(can_signal_t* signal,
- openxc_DynamicField* value, bool* send);
+typedef uint64_t (*signal_encoder)(can_signal_t& signal,
+ const openxc_DynamicField& field, bool* send);
class can_signal_t
{