Skip to content

Commit

Permalink
mavlink: enable partner ip status print
Browse files Browse the repository at this point in the history
Enable partner IP to be printed in mavlink status output also
other than POSIX (SITL) build
  • Loading branch information
jnippula committed Sep 18, 2024
1 parent 66088df commit 712208c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/modules/mavlink/mavlink_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3042,13 +3042,11 @@ Mavlink::display_status()
broadcast_enabled() ? "YES" : "NO");
printf("\tMulticast enabled: %s\n",
multicast_enabled() ? "YES" : "NO");
#ifdef __PX4_POSIX

if (get_client_source_initialized()) {
printf("\tpartner IP: %s\n", inet_ntoa(get_client_source_address().sin_addr));
}

#endif
break;
#endif // MAVLINK_UDP

Expand Down

0 comments on commit 712208c

Please sign in to comment.