Skip to content

Commit

Permalink
Fix parsing SF refs to LUA script output (#4589)
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower committed Feb 1, 2024
1 parent 4202404 commit 229f4c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions companion/src/firmwares/edgetx/yaml_customfunctiondata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 229f4c1

Please sign in to comment.