summaryrefslogtreecommitdiffstats
path: root/src/can/can-bus.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-10 15:14:05 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commit390edc67f93cb9447fb4585a12f58a63754c56d5 (patch)
treecc3c28af4a0d8f52081f22d1d849d847d874efee /src/can/can-bus.cpp
parent94506d3985429d79f8521fca46ed7b9dc1eb4109 (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.cpp')
-rw-r--r--src/can/can-bus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/can/can-bus.cpp b/src/can/can-bus.cpp
index 93de2a38..4ddf6c82 100644
--- a/src/can/can-bus.cpp
+++ b/src/can/can-bus.cpp
@@ -186,7 +186,7 @@ int can_bus_t::init_can_dev()
for(const auto& device : devices_name)
{
- can_devices_m_[device] = std::make_shared<can_bus_dev_t>(device);
+ can_devices_m_[device] = std::make_shared<can_bus_dev_t>(device, i);
if (can_devices_m_[device]->open() == 0)
{
i++;