Don't touch not-found device configs

This commit is contained in:
Charles J. Cliffe
2016-01-20 01:15:12 -05:00
parent b1ac17729e
commit 419705419c
3 changed files with 17 additions and 7 deletions
+1 -2
View File
@@ -467,8 +467,7 @@ bool AppConfig::load() {
while (devices_node->hasAnother("device")) {
DataNode *device_node = devices_node->getNext("device");
if (device_node->hasAnother("id")) {
std::string deviceId;
device_node->getNext("id")->element()->get(deviceId);
std::string deviceId = device_node->getNext("id")->element()->toString();
getDevice(deviceId)->load(device_node);
}