1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

tools: fix whitespace in png2toi .py export

This commit is contained in:
Pavol Rusnak 2017-09-04 23:18:43 +02:00
parent be9a05b55a
commit ed581a5b36
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -72,7 +72,7 @@ def process_image(ifn, savefiles=False):
f.write(data)
print('Written %s ... %d bytes' % (ofn, len(data)))
with open(ofn_py, 'wb') as f:
f.write(('%s = %s ' % (bname, data)).encode())
f.write(('%s = %s\n' % (bname, data)).encode())
print('Written %s ... %d bytes' % (ofn_py, len(data)))
with open(ofn_h, 'wt') as f:
f.write('static const uint8_t toi_%s[] = {\n' % bname)