diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-10 15:14:05 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:10:40 +0100 |
commit | 390edc67f93cb9447fb4585a12f58a63754c56d5 (patch) | |
tree | cc3c28af4a0d8f52081f22d1d849d847d874efee /src/can/can-bus-dev.hpp | |
parent | 94506d3985429d79f8521fca46ed7b9dc1eb4109 (diff) |
Also initialize the id_ renamed address_ member. This member
is mapped to the address node from json
Change-Id: Ied13067723552c2396337a9f85fe5e1418ba8caf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can/can-bus-dev.hpp')
-rw-r--r-- | src/can/can-bus-dev.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/can/can-bus-dev.hpp b/src/can/can-bus-dev.hpp index 5907c58..affcb34 100644 --- a/src/can/can-bus-dev.hpp +++ b/src/can/can-bus-dev.hpp @@ -36,7 +36,7 @@ private: std::string device_name_; utils::socket_t can_socket_; - int32_t id_; /// < an identifier used through binding that refer to that device + int32_t address_; /// < an identifier used through binding that refer to that device bool is_fdmode_on_; /// < boolean telling if whether or not the can socket use fdmode. struct sockaddr_can txAddress_; /// < internal member using to bind to the socket @@ -46,7 +46,7 @@ private: void can_reader(can_bus_t& can_bus); public: - can_bus_dev_t(const std::string& dev_name); + can_bus_dev_t(const std::string& dev_name, int32_t address); std::string get_device_name() const; |