mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
Fixed min/max code error.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3119 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
aa84845c1e
commit
5c69e94e83
@ -337,8 +337,8 @@ void ConfigOutputWidget::sendChannelTest(int value)
|
||||
if (!links[i]->checkState()) continue;
|
||||
|
||||
int val = in_value;
|
||||
if (val < outMin[i]) val = outMin[i];
|
||||
if (val > outMax[i]) val = outMax[i];
|
||||
if (val < outSliders[i]->minimum()) val = outSliders[i]->minimum();
|
||||
if (val > outSliders[i]->maximum()) val = outSliders[i]->maximum();
|
||||
|
||||
if (outSliders[i]->value() == val) continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user