From 454e4f65caca85395a5ca79814d6ca333dd5ae6b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 27 Apr 2017 00:59:40 +0200 Subject: Fix: write bcm message to socket. Just allowing message with 1 frame avoiding to handle dynamic sized array... This close the door for multiplexed msg for now... Let's see later and move on Change-Id: I3626d4b6634b3f119826603e64713d63e994918e Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/can/can-bus-dev.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CAN-binder/low-can-binding/can') diff --git a/CAN-binder/low-can-binding/can/can-bus-dev.cpp b/CAN-binder/low-can-binding/can/can-bus-dev.cpp index 7f7a7624..c0ebca11 100644 --- a/CAN-binder/low-can-binding/can/can-bus-dev.cpp +++ b/CAN-binder/low-can-binding/can/can-bus-dev.cpp @@ -125,7 +125,7 @@ int can_bus_dev_t::create_rx_filter(const can_signal_t& s) { uint32_t can_id = s.get_message().get_id(); - struct utils::basic_bcm_msg bcm_msg; + struct utils::simple_bcm_msg bcm_msg; struct can_frame cfd; memset(&cfd, 0, sizeof(cfd)); @@ -145,7 +145,7 @@ int can_bus_dev_t::create_rx_filter(const can_signal_t& s) cfd.data, CAN_MAX_DLEN); - bcm_msg.frames.push_back(cfd); + bcm_msg.frames = cfd; if(can_socket_ << bcm_msg) return 0; -- cgit 1.2.3-korg