From cbbcd06003a5504a3679d70a918349d6a91211c6 Mon Sep 17 00:00:00 2001 From: Tim Ryan Date: Thu, 10 Dec 2015 16:00:01 -0800 Subject: [PATCH] Modifices udp recvfrom to accept MAX_LEN UDP packets. This is needed for any external code that uses the mavlink-solo branch. --- pymavlink/mavutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymavlink/mavutil.py b/pymavlink/mavutil.py index 4c9c854..6077b03 100644 --- a/pymavlink/mavutil.py +++ b/pymavlink/mavutil.py @@ -815,7 +815,7 @@ def close(self): def recv(self,n=None): try: - data, self.last_address = self.port.recvfrom(300) + data, self.last_address = self.port.recvfrom(65535) except socket.error as e: if e.errno in [ errno.EAGAIN, errno.EWOULDBLOCK, errno.ECONNREFUSED ]: return ""