From 50e7b9b7af08d5750a97c89a53dcb77cc2811134 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 10 Sep 2014 12:07:14 +0200 Subject: [PATCH] Fixes #1566 --- companion/src/firmwares/opentx/opentxeeprom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 44f3d7e17..afc231e63 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -1078,6 +1078,8 @@ class MixField: public TransformedField { mix.curve = CurveReference(CurveReference::CURVE_REF_DIFF, smallGvarToC9x(_curveParam)); else if (_curveParam > 6) mix.curve = CurveReference(CurveReference::CURVE_REF_CUSTOM, _curveParam-6); + else if (_curveParam < 0) + mix.curve = CurveReference(CurveReference::CURVE_REF_CUSTOM, _curveParam); else mix.curve = CurveReference(CurveReference::CURVE_REF_FUNC, _curveParam); }