mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
GCS/Config gadget: problem with GCS crashing on input channel assignement should be fixed. Was triggered whenever no input channel was assigned to flight mode, as Corvus found out, thanks!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2277 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
6799f75aeb
commit
4ee9cf7aad
@ -912,7 +912,7 @@ void ConfigServoWidget::updateChannels(UAVObject* controlCommand)
|
||||
// Find the channel currently assigned to flightmode
|
||||
field = obj->getField("FlightMode");
|
||||
int chIndex = field->getOptions().indexOf(field->getValue().toString());
|
||||
if ( chIndex < field->getOptions().length()) {
|
||||
if ( chIndex < field->getOptions().length()-1) {
|
||||
float valueScaled;
|
||||
int chMin = inSliders.at(chIndex)->minimum();
|
||||
int chMax = inSliders.at(chIndex)->maximum();
|
||||
|
Loading…
x
Reference in New Issue
Block a user