Browse Source

Bug fix: QGC will crashed when disconnecting a vehicle and then reconnecting with joystick connected. (#11260)

QGC4.4
Jimmy 11 months ago committed by Julian Oes
parent
commit
50200a59d4
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 3
      src/Joystick/Joystick.cc

3
src/Joystick/Joystick.cc

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/****************************************************************************
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
@ -778,6 +778,7 @@ void Joystick::stopPolling(void) @@ -778,6 +778,7 @@ void Joystick::stopPolling(void)
}
_exitThread = true;
}
_activeVehicle = nullptr;
}
void Joystick::setCalibration(int axis, Calibration_t& calibration)

Loading…
Cancel
Save