diff --git a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp index 9480d789e..3c00987f7 100644 --- a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp +++ b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp @@ -283,8 +283,8 @@ void GCSControlGadget::buttonState(ButtonNumber number, bool pressed) void GCSControlGadget::axesValues(QListInt16 values) { int chMax = values.length(); - if (rollChannel > chMax || pitchChannel > chMax || - yawChannel > chMax || throttleChannel > chMax ) { + if (rollChannel >= chMax || pitchChannel >= chMax || + yawChannel >= chMax || throttleChannel >= chMax ) { qDebug() << "GCSControl: configuration is inconsistent with current joystick! Aborting update."; return; }