From 5237a3c37c90f5229e7ea8fd4291747abe191f75 Mon Sep 17 00:00:00 2001 From: Neil Horne <15316949+elecpower@users.noreply.github.com> Date: Sun, 6 Oct 2024 13:16:46 +1100 Subject: [PATCH] fix(cpn): set all sf/gf functions with repeat to enabled on otx import (#5586) --- companion/src/firmwares/opentx/opentxeeprom.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 9ef01261494..ce1c1768622 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -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);