mavlink app: Fix POSIX UDP transfer issues on larger packets

This commit is contained in:
Lorenz Meier
2015-06-25 08:46:26 +02:00
parent ff3eaf42fa
commit c2127f9501
+6
View File
@@ -1626,7 +1626,13 @@ MavlinkReceiver::receive_thread(void *arg)
{
const int timeout = 500;
#ifdef __PX4_POSIX
/* 1500 is the Wifi MTU, so we make sure to fit a full packet */
uint8_t buf[1600];
#else
/* the serial port buffers internally as well, we just need to fit a small chunk */
uint8_t buf[32];
#endif
mavlink_message_t msg;
struct pollfd fds[1];