common: misc fixes:

- moved external files to lib folder
 - fixed typos
 - added optional "sudo" to flash command
 - fixed redundant file close in script
 - fixed compilation warning
This commit is contained in:
sh83 authored and Eric Callahan committed 2022-10-31 07:23:14 -04:00
1 parent 0a24cd4502
commit 2990480d25
7 files changed
+6 -8

No files matched your search

-2
View File
@@ -12,7 +12,6 @@ def renumerate(content):
result.extend(block[ : 20])
result.extend(struct.pack("<II", current, total))
result.extend(block[ 28 : ])
# print("address " + hex(int.from_bytes(block[12:16], "little")))
return result
def add_signature(content, address):
@@ -42,7 +41,6 @@ def main():
content = renumerate(content)
with open(args.output, 'wb') as f:
f.write(content)
f.close()
if __name__ == '__main__':
main()