mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 02:00:36 +08:00
px_mkfw.py: fix indent (fix for Python 3)
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ if args.parameter_xml != None:
|
|||||||
bytes = f.read()
|
bytes = f.read()
|
||||||
desc['parameter_xml_size'] = len(bytes)
|
desc['parameter_xml_size'] = len(bytes)
|
||||||
desc['parameter_xml'] = base64.b64encode(zlib.compress(bytes,9)).decode('utf-8')
|
desc['parameter_xml'] = base64.b64encode(zlib.compress(bytes,9)).decode('utf-8')
|
||||||
desc['mav_autopilot'] = 12 # 12 = MAV_AUTOPILOT_PX4
|
desc['mav_autopilot'] = 12 # 12 = MAV_AUTOPILOT_PX4
|
||||||
if args.airframe_xml != None:
|
if args.airframe_xml != None:
|
||||||
f = open(args.airframe_xml, "rb")
|
f = open(args.airframe_xml, "rb")
|
||||||
bytes = f.read()
|
bytes = f.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user