mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +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;
|
||||
|
||||
// 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 ) {
|
||||
return 1500;
|
||||
} else {
|
||||
@@ -1046,7 +1046,7 @@ Mavlink::init_udp()
|
||||
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));
|
||||
if (_mode != MAVLINK_MODE_ONBOARD) {
|
||||
set_client_source_initialized();
|
||||
|
||||
Reference in New Issue
Block a user