diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-25 19:58:08 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-27 00:53:49 +0200 |
commit | 45dd042f924236be04d4e4292de111f80a004060 (patch) | |
tree | ffaa576e3d36ee81d708aa96ec5ea14a73b8f18d /CAN-binder/low-can-binding/can/can-bus-dev.hpp | |
parent | c1dc2bdc685cff74ceef67e9658e1b193b01b67f (diff) |
Renaming confusing member "address_" to "index_"
Change-Id: I0ec6d74e9adb791f8bef44f76c74be8365cdf037
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 | 4 |
1 files changed, 2 insertions, 2 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 d32f9a84..38727e03 100644 --- a/CAN-binder/low-can-binding/can/can-bus-dev.hpp +++ b/CAN-binder/low-can-binding/can/can-bus-dev.hpp @@ -36,7 +36,7 @@ private: std::string device_name_; ///< a string identifier identitfying the linux CAN device. utils::socketcan_t can_socket_; - int32_t address_; ///< an identifier used through binding that refer to that device + int index_; std::thread th_reading_; ///< Thread handling read the socket can device filling can_message_q_ queue of can_bus_t bool is_running_ = false; ///< boolean telling whether or not reading is running or not @@ -46,7 +46,7 @@ public: can_bus_dev_t(const std::string& dev_name, int32_t address); std::string get_device_name() const; - uint32_t get_address() const; + int get_index() const; int open(); void configure(); |