diff options
Diffstat (limited to 'CAN-binder/low-can-binding/can/can-bus-dev.cpp')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-bus-dev.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 7f7a762..c0ebca1 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<struct can_frame> 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; |