mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 00:47:35 +08:00
mavlink: remove an UDP remote port warning, print remote port in mode info
This commit is contained in:
@@ -1701,7 +1701,6 @@ Mavlink::task_main(int argc, char *argv[])
|
||||
case 'o':
|
||||
temp_int_arg = strtoul(myoptarg, &eptr, 10);
|
||||
if ( *eptr == '\0' ) {
|
||||
warnx("set remote port %d", temp_int_arg);
|
||||
_remote_port = temp_int_arg;
|
||||
set_protocol(UDP);
|
||||
} else {
|
||||
@@ -1822,8 +1821,8 @@ Mavlink::task_main(int argc, char *argv[])
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
PX4_INFO("mode: %s, data rate: %d B/s on udp port %hu",
|
||||
mavlink_mode_str(_mode), _datarate, _network_port);
|
||||
PX4_INFO("mode: %s, data rate: %d B/s on udp port %hu remote port %hu",
|
||||
mavlink_mode_str(_mode), _datarate, _network_port, _remote_port);
|
||||
}
|
||||
|
||||
/* initialize send mutex */
|
||||
|
||||
Reference in New Issue
Block a user