Skip to content

Commit

Permalink
Merge pull request #2356 from fibonacci-matrix/notify_on_discover
Browse files Browse the repository at this point in the history
core: Fixed unnecessary repeated invocations of `notify_on_discover`
  • Loading branch information
julianoes authored Jul 24, 2024
2 parents f1aff89 + 15918a8 commit da070c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mavsdk/core/system_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,9 @@ void SystemImpl::set_connected()
// If not yet connected there is nothing to do/
}

_mavsdk_impl.notify_on_discover();

if (enable_needed) {
_mavsdk_impl.notify_on_discover();

if (has_autopilot()) {
send_autopilot_version_request();
}
Expand Down

0 comments on commit da070c5

Please sign in to comment.