Skip to content

Commit

Permalink
Merge pull request #2359 from mavlink/pr-v2.12-notify
Browse files Browse the repository at this point in the history
[BACKPORT v2.12] core: Fixed unnecessary repeated invocations of `notify_on_discover`
  • Loading branch information
julianoes committed Jul 24, 2024
2 parents d514546 + 88fb922 commit 93b91d6
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 @@ -531,9 +531,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 93b91d6

Please sign in to comment.