mavlink: speed up ftp transfers on POSIX

Around 900 KB/s - not fast, but should be fast enough for the use-cases.
This commit is contained in:
Beat Küng 2020-11-02 09:21:30 +01:00
parent d0e35efe3a
commit f8989fe5aa
1 changed files with 4 additions and 0 deletions

View File

@ -747,7 +747,11 @@ Mavlink::get_free_tx_buf()
// if we are using network sockets, return max length of one packet
if (get_protocol() == Protocol::UDP) {
# if defined(__PX4_POSIX)
return 1500 * 10; // Speed up FTP transfers
# else
return 1500;
# endif /* defined(__PX4_POSIX) */
} else
#endif // MAVLINK_UDP