mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 05:26:34 +00:00
Fixed segfault if system was not found Autopilot
This commit is contained in:
@@ -78,7 +78,7 @@ bool AzDroneController::stateAutopilot(void)
|
||||
|
||||
if (systems.size() == 0) {
|
||||
std::cerr << "No system found." << std::endl;
|
||||
return 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
std::optional<std::shared_ptr<System>> autopilot = mMavsdk.first_autopilot(AZ_GET_AUTOPILOT_TIMEOUT);
|
||||
|
||||
Reference in New Issue
Block a user