Skip to content

Commit

Permalink
Merge pull request #24 from 3drobotics/tcr3dr-patch-1
Browse files Browse the repository at this point in the history
Modifices udp recvfrom to accept MAX_LEN UDP packets.
  • Loading branch information
mrpollo committed Dec 11, 2015
2 parents 2af1042 + cbbcd06 commit 55f0377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymavlink/mavutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 55f0377

Please sign in to comment.