Skip to content

Commit

Permalink
fix(cpn): set all sf/gf functions with repeat to enabled on otx import (
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower authored Oct 6, 2024
1 parent 6c3aaef commit 5237a3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion companion/src/firmwares/opentx/opentxeeprom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1774,8 +1774,11 @@ class ArmCustomFunctionField: public TransformedField {
{
fn.func = (AssignFunc)_func;

if (hasRepeatParam(fn))
if (hasRepeatParam(fn)) {
fn.repeatParam = _active;
// PR #3601 added enabled field to all sf/gfs functions with repeat parameter assumed always enabled so now set explicitly
fn.enabled = 1;
}
else
fn.enabled = (_active & 0x01);

Expand Down

0 comments on commit 5237a3c

Please sign in to comment.