MCPcopy Create free account
hub / github.com/FrameworkComputer/framework-system / write_bin

Function write_bin

decode_pcapng.py:151–157  ·  view source on GitHub ↗
(path, binary1, binary2)

Source from the content-addressed store, hash-verified

149
150# Just concatenate both firmware binaries
151def write_bin(path, binary1, binary2):
152 with open(path, "wb") as f:
153 for (_, row) in binary1:
154 f.write(row)
155
156 for (_, row) in binary2:
157 f.write(row)
158
159# Write the binary in the same layout with padding as on flash
160def write_flashimage(path, binary1, binary2):

Callers 1

mainFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected