From 5cb0ca469f61e6361205a0d8876d3bdf24298110 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 16 Jan 2022 10:13:57 +0100 Subject: [PATCH] Fix (de-)serializing enable param for backlight custom function Resolves #1446 Resolves #1447 --- companion/src/firmwares/edgetx/yaml_customfunctiondata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/companion/src/firmwares/edgetx/yaml_customfunctiondata.cpp b/companion/src/firmwares/edgetx/yaml_customfunctiondata.cpp index 29a016604..f0475f47b 100644 --- a/companion/src/firmwares/edgetx/yaml_customfunctiondata.cpp +++ b/companion/src/firmwares/edgetx/yaml_customfunctiondata.cpp @@ -27,7 +27,8 @@ static bool fnHasEnable(AssignFunc fn) return (fn <= FuncInstantTrim) || (fn >= FuncReset && fn <= FuncSetTimerLast) || (fn >= FuncAdjustGV1 && fn <= FuncBindExternalModule) - || (fn == FuncVolume); + || (fn == FuncVolume) + || (fn == FuncBacklight); } static bool fnHasRepeat(AssignFunc fn)