]> pilppa.org Git - lib1wire.git/blobdiff - src/Factory.cc
Support for seting and changing values from device specific config
[lib1wire.git] / src / Factory.cc
index e9637a4bd7101487cf4f2cf83d27dd4e04ddd415..c81dbe198e3a37c4e423da65fa76611b34632fb6 100644 (file)
@@ -53,6 +53,7 @@ W1Device *Factory::get_device(int family_code,
                        if (type.empty() == true) {
                                type    = ret_val->get_device_type();
                                config->set_cfg_value(DEVICE_CONFIG_VALUE_KEY__TYPE, type);
+                               config->set_cfg_value(DEVICE_CONFIG_VALUE_KEY__ID, ret_val->get_id());
                        }
                }
        }