Some fixes

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:10 +01:00
parent 112a606ed5
commit 7fc4963759
4 changed files with 38 additions and 33 deletions
@@ -129,7 +129,8 @@ bool convert<LogicalSwitchData>::decode(const Node& node,
std::string sw_str;
getline(def, sw_str, ',');
rhs.val1 = YamlRawSwitchDecode(sw_str).toValue();
rhs.val2 = YamlRawSwitchDecode(def.str()).toValue();
getline(def, sw_str);
rhs.val2 = YamlRawSwitchDecode(sw_str).toValue();
} break;
case LS_FAMILY_EDGE: {
@@ -154,7 +155,8 @@ bool convert<LogicalSwitchData>::decode(const Node& node,
std::string src_str;
getline(def, src_str, ',');
rhs.val1 = YamlRawSourceDecode(src_str).toValue();
rhs.val2 = YamlRawSourceDecode(def.str()).toValue();
getline(def, src_str);
rhs.val2 = YamlRawSourceDecode(src_str).toValue();
} break;
case LS_FAMILY_TIMER: {