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.
This commit is contained in:
openfsguruh
2014-02-11 17:40:05 +01:00
parent 45ba06c7b9
commit a4f4999546
+2 -2
View File
@@ -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);