Skip to content

Commit

Permalink
fix:(cpn) push cust switch param print
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower committed Sep 11, 2024
1 parent 729abb0 commit 8d65dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion companion/src/firmwares/customfunctiondata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ QString CustomFunctionData::paramToString(const ModelData * model) const
if ((func >= FuncOverrideCH1 && func <= FuncOverrideCHLast) || func == FuncSetScreen) {
return QString("%1").arg(param);
}
else if (func == FuncLogs || (func >= FuncPushCustomSwitch1 && func >= FuncPushCustomSwitchLast)) {
else if (func == FuncLogs || (func >= FuncPushCustomSwitch1 && func <= FuncPushCustomSwitchLast)) {
return QString("%1").arg(param / 10.0) + tr("s");
}
else if (func == FuncPlaySound) {
Expand Down

0 comments on commit 8d65dff

Please sign in to comment.