reflow-oven-control-sw/stm-firmware/updater/ram-code/bin2carray.py

18 lines
232 B
Python
Raw Normal View History

2020-12-07 21:39:07 +01:00
#!env python
import os
import sys
if len(sys.argv) < 3:
sys.exit(-1)
source_file = sys.argv[2]
dest_file = sys.argv[1]
print("%s --> %s" % (source_file, dest_file))
with open(dest_file, "w") as f:
f.write("AAA")
sys.exit(0)