Browse Source

Fix python 3 compatibility in px_uploader.py

sbg
Julien Lecoeur 8 years ago committed by Beat Küng
parent
commit
38fff6546d
  1. 4
      Tools/px_uploader.py

4
Tools/px_uploader.py

@ -615,8 +615,8 @@ def main(): @@ -615,8 +615,8 @@ def main():
portnum = 14550
# COMMAND_LONG in MAVLink 1
heartbeatpacket = 'fe097001010000000100020c5103033c8a'.decode('hex')
commandpacket = 'fe210101014c00000000000000000000000000000000000000000000803f00000000f6000000008459'.decode('hex')
heartbeatpacket = bytearray.fromhex('fe097001010000000100020c5103033c8a')
commandpacket = bytearray.fromhex('fe210101014c00000000000000000000000000000000000000000000803f00000000f6000000008459')
# initialize an UDP socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

Loading…
Cancel
Save