mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 08:40:30 +08:00
Store parameter xml size
This is needed in order to decompress in QGroundControl
This commit is contained in:
1 parent
3c36a61569
commit
c8452bb9d6
1 file changed
+1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user