From a4f4999546878a96d4b1cf3bb0785f2c92febed3 Mon Sep 17 00:00:00 2001 From: openfsguruh Date: Tue, 11 Feb 2014 17:40:05 +0100 Subject: [PATCH] bugfix: Throttle warning shown wrong in companion Actually Throttle warning was not ticked by default in companion, and if ticked, it was disabled, and when not ticked it was enabled. Now it fits to the real firmware settings. --- companion/src/modeledit/setup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/modeledit/setup.cpp b/companion/src/modeledit/setup.cpp index 8042ccfe3..be7ccd8d7 100644 --- a/companion/src/modeledit/setup.cpp +++ b/companion/src/modeledit/setup.cpp @@ -476,7 +476,7 @@ void Setup::on_extendedLimits_toggled(bool checked) void Setup::on_throttleWarning_toggled(bool checked) { - model.disableThrottleWarning = checked; + model.disableThrottleWarning = !checked; emit modified(); } @@ -550,7 +550,7 @@ void Setup::update() ui->throttleReverse->setChecked(model.throttleReversed); populateTTraceCB(ui->throttleSource, model.thrTraceSrc); - ui->throttleWarning->setChecked(model.disableThrottleWarning); + ui->throttleWarning->setChecked(!model.disableThrottleWarning); //trim inc, thro trim, thro expo, instatrim ui->trimIncrement->setCurrentIndex(model.trimInc+2);