mavlink: remove an UDP remote port warning, print remote port in mode info

This commit is contained in:
Beat Küng
2016-06-15 09:56:34 +02:00
parent 574a67b93d
commit 26b7ac3884
+2 -3
View File
@@ -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 */