summaryrefslogtreecommitdiffstats
path: root/can-utils.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-14 11:18:58 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-14 11:18:58 +0100
commit9e11d2500f4a41afa2f293baee77f71b90652153 (patch)
treef9720cfb963b516974971723da2d6700fdffe795 /can-utils.cpp
parent91aab46150dacda677c8751942abc452998cdf8d (diff)
Added JSON conf file read and initialize CanBus
object with device name retrieve from conf file. Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'can-utils.cpp')
-rw-r--r--can-utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/can-utils.cpp b/can-utils.cpp
index abfe0a04..67214105 100644
--- a/can-utils.cpp
+++ b/can-utils.cpp
@@ -23,9 +23,10 @@
*
*********************************************************************************/
-CanBus_c::CanBus_c(afb_binding_interface *itf)
+CanBus_c::CanBus_c(afb_binding_interface *itf, const std:string& dev_name)
{
interface = itf;
+ deviceName = dev_name;
}
int CanBus_c::open()