1
0
forked from me/IronOS-Meta

Cleaning up _more_

This commit is contained in:
Ben V. Brown
2022-02-14 21:59:50 +11:00
parent 70d788783f
commit a526c3bb0d
4 changed files with 83 additions and 130 deletions

View File

@@ -14,17 +14,14 @@ class DFUOutput:
def writeFile(
cls,
file_name: str,
data: bytearray,
data_in: bytearray,
data_address: int,
tagetName: str,
alt_number: int,
product_id: int,
vendor_id: int,
):
data: bytearray = b""
for byte in data:
data += byte.to_bytes(1, byteorder="big")
data: bytearray = bytearray(data_in)
data = struct.pack("<2I", data_address, len(data)) + data
data = (