From 14043c56960ced9141ef107c66a6a041a75f6cb3 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 27 Apr 2017 00:53:30 +0200 Subject: Typo, rename, format Change-Id: I8250ef78f0b540617bd249873250f62ad6361fdf Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/can/can-bus-dev.cpp | 2 -- CAN-binder/low-can-binding/can/can-bus.cpp | 11 ++++++----- CAN-binder/low-can-binding/can/can-message.hpp | 2 +- 3 files changed, 7 insertions(+), 8 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 1aaefc91..df0c0d6f 100644 --- a/CAN-binder/low-can-binding/can/can-bus-dev.cpp +++ b/CAN-binder/low-can-binding/can/can-bus-dev.cpp @@ -28,8 +28,6 @@ #include "../low-can-binding.hpp" #include "canutil/write.h" -#define U64_DATA(p) (*(unsigned long long*)(p)->data) - /// @brief Class constructor /// /// @param[in] dev_name - String representing the device name into the linux /dev tree diff --git a/CAN-binder/low-can-binding/can/can-bus.cpp b/CAN-binder/low-can-binding/can/can-bus.cpp index 66657443..6e74b86a 100644 --- a/CAN-binder/low-can-binding/can/can-bus.cpp +++ b/CAN-binder/low-can-binding/can/can-bus.cpp @@ -15,14 +15,15 @@ * limitations under the License. */ -#include -#include -#include -#include #include #include #include #include +#include +#include +#include +#include +#include #include "can-bus.hpp" @@ -337,7 +338,7 @@ void can_bus_t::push_new_vehicle_message(const openxc_VehicleMessage& v_msg) /// @brief Create a RX_SETUP receive job for the BCM socket of a CAN signal. /// -/// @return 0 if ok. +/// @return 0 if ok -1 if not. int can_bus_t::create_rx_filter(const can_signal_t& s) { const std::string& bus = s.get_message().get_bus_name(); diff --git a/CAN-binder/low-can-binding/can/can-message.hpp b/CAN-binder/low-can-binding/can/can-message.hpp index 6fe03172..5a6e6eb3 100644 --- a/CAN-binder/low-can-binding/can/can-message.hpp +++ b/CAN-binder/low-can-binding/can/can-message.hpp @@ -70,6 +70,6 @@ public: bool is_correct_to_send(); -static can_message_t convert_from_canfd_frame(const struct canfd_frame& frame, size_t nbytes); + static can_message_t convert_from_canfd_frame(const struct canfd_frame& frame, size_t nbytes); canfd_frame convert_to_canfd_frame(); }; -- cgit 1.2.3-korg