Skip to content

Commit

Permalink
amba_fwpak: Ignore binary data in header fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mefistotelis committed Oct 5, 2024
1 parent 156a1f9 commit 68b3627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amba_fwpak.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def ini_export(self, fp):
fp.write("# Ambarella Firmware Packer module header file. Loosly based on AFT format.\n")
fp.write(strftime("# Generated on %Y-%m-%d %H:%M:%S\n", gmtime()))
varkey = 'model_name'
fp.write("{:s}={:s}\n".format(varkey, d[varkey].decode("utf-8")))
fp.write("{:s}={:s}\n".format(varkey, d[varkey].decode(encoding='utf-8', errors='ignore')));
varkey = 'ver_info'
fp.write("{:s}={:s}\n".format(varkey, d[varkey]))

Expand Down

0 comments on commit 68b3627

Please sign in to comment.