From 0a27582743cb7b4ad191adea4eefeda01d179896 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 20 Apr 2017 17:38:01 +0200 Subject: Use same function to open BCM and RAW CAN sockets Using one a another socket type is made using a boolean. Change-Id: I0445c8550f289d1e0020f6496c638bc95e8db443 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/can/can-bus-dev.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CAN-binder/low-can-binding/can/can-bus-dev.hpp') diff --git a/CAN-binder/low-can-binding/can/can-bus-dev.hpp b/CAN-binder/low-can-binding/can/can-bus-dev.hpp index 3e6b2d1..8cafaf8 100644 --- a/CAN-binder/low-can-binding/can/can-bus-dev.hpp +++ b/CAN-binder/low-can-binding/can/can-bus-dev.hpp @@ -50,7 +50,7 @@ public: std::string get_device_name() const; uint32_t get_address() const; - int open_raw(); + int open(bool bcm=false); int close(); void start_reading(can_bus_t& can_bus); -- cgit 1.2.3-korg