mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Store parameter xml size
This is needed in order to decompress in QGroundControl
This commit is contained in:
parent
3c36a61569
commit
c8452bb9d6
@ -105,6 +105,7 @@ if args.git_identity != None:
|
||||
if args.parameter_xml != None:
|
||||
f = open(args.parameter_xml, "rb")
|
||||
bytes = f.read()
|
||||
desc['parameter_xml_size'] = len(bytes)
|
||||
desc['parameter_xml'] = base64.b64encode(zlib.compress(bytes,9)).decode('utf-8')
|
||||
if args.image != None:
|
||||
f = open(args.image, "rb")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user