Skip to content

Commit

Permalink
Bug fix: QGC will crashed when disconnecting a vehicle and then recon…
Browse files Browse the repository at this point in the history
…necting with joystick connected. (#11260)
  • Loading branch information
yizhendongfeng authored and julianoes committed Mar 28, 2024
1 parent 29a8f5e commit 19462a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Joystick/Joystick.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/****************************************************************************
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
Expand Down Expand Up @@ -778,6 +778,7 @@ void Joystick::stopPolling(void)
}
_exitThread = true;
}
_activeVehicle = nullptr;
}

void Joystick::setCalibration(int axis, Calibration_t& calibration)
Expand Down

0 comments on commit 19462a3

Please sign in to comment.