- ERROR("No mapping found in config file: '%s'. Check it that it have a CANbus-mapping section.",
- conf_file_.filepath().c_str());
+ can_devices_mapping_ = conf_file_.get_devices_name();
+
+ if(can_devices_mapping_.empty())
+ {
+ AFB_ERROR("No mapping found in config file: '%s'. Check it that it have a CANbus-mapping section.",
+ conf_file_.filepath().c_str());
+ }