1
0
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:
pip 2011-04-02 12:49:58 +00:00 committed by pip
parent aa84845c1e
commit 5c69e94e83

View File

@ -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;