diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-20 17:38:01 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-20 17:38:01 +0200 |
commit | 0a27582743cb7b4ad191adea4eefeda01d179896 (patch) | |
tree | 9187fa3ee5ca4351fac72b8bceb63760769f0f9c /CAN-binder/low-can-binding/can/can-bus-dev.hpp | |
parent | f546e121079088920e2a3f64bc054afa05ff945f (diff) |
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/can/can-bus-dev.hpp')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-bus-dev.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 3e6b2d1c..8cafaf83 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); |