mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 21:23:57 +08:00
Update mavlink_main.cpp
spelling mistakes
This commit is contained in:
@@ -844,7 +844,7 @@ Mavlink::get_free_tx_buf()
|
|||||||
*/
|
*/
|
||||||
int buf_free = 0;
|
int buf_free = 0;
|
||||||
|
|
||||||
// if we are using network sockets, return max lenght of one packet
|
// if we are using network sockets, return max length of one packet
|
||||||
if (get_protocol() == UDP || get_protocol() == TCP ) {
|
if (get_protocol() == UDP || get_protocol() == TCP ) {
|
||||||
return 1500;
|
return 1500;
|
||||||
} else {
|
} else {
|
||||||
@@ -1046,7 +1046,7 @@ Mavlink::init_udp()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set default target address, but not for onboard mode (will be set on first recieved packet) */
|
/* set default target address, but not for onboard mode (will be set on first received packet) */
|
||||||
memset((char *)&_src_addr, 0, sizeof(_src_addr));
|
memset((char *)&_src_addr, 0, sizeof(_src_addr));
|
||||||
if (_mode != MAVLINK_MODE_ONBOARD) {
|
if (_mode != MAVLINK_MODE_ONBOARD) {
|
||||||
set_client_source_initialized();
|
set_client_source_initialized();
|
||||||
|
|||||||
Reference in New Issue
Block a user