Fix python 3 compatibility in px_uploader.py

This commit is contained in:
Julien Lecoeur
2017-06-07 17:57:56 +02:00
committed by Beat Küng
parent e0d81b4c5e
commit 38fff6546d
+2 -2
View File
@@ -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)