refactor(cpn): Support JSON radio hardware definitions (#4406)

This commit is contained in:
Neil Horne
2024-02-04 15:59:04 +10:00
committed by GitHub
parent c6ae44f523
commit 83294613f6
63 changed files with 4166 additions and 2295 deletions
@@ -321,6 +321,11 @@ bool convert<CustomFunctionData>::decode(const Node& node,
case FuncBacklight: {
std::string src_str;
getline(def, src_str, ',');
if (def_str.size() >= 4 && def_str.substr(0, 4) == "lua(") {
std::string tmp_str;
getline(def, tmp_str, ',');
src_str += ("," + tmp_str);
}
rhs.param = YamlRawSourceDecode(src_str).toValue();
} break;
case FuncAdjustGV1: {