mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-11 08:47:48 -06:00
🎨 Python ; cleanup (#26426)
This commit is contained in:
parent
178938d957
commit
c751dcfcf9
11 changed files with 27 additions and 27 deletions
|
@ -9,7 +9,7 @@ if pioutil.is_pio_build():
|
|||
board = marlin.env.BoardConfig()
|
||||
|
||||
def calculate_crc(contents, seed):
|
||||
accumulating_xor_value = seed;
|
||||
accumulating_xor_value = seed
|
||||
|
||||
for i in range(0, len(contents), 4):
|
||||
value = struct.unpack('<I', contents[ i : i + 4])[0]
|
||||
|
@ -68,7 +68,7 @@ if pioutil.is_pio_build():
|
|||
uid_value = uuid.uuid4()
|
||||
file_key = int(uid_value.hex[0:8], 16)
|
||||
|
||||
xor_crc = 0xEF3D4323;
|
||||
xor_crc = 0xEF3D4323
|
||||
|
||||
# the input file is exepcted to be in chunks of 0x800
|
||||
# so round the size
|
||||
|
@ -123,4 +123,4 @@ if pioutil.is_pio_build():
|
|||
fwpath.unlink()
|
||||
|
||||
marlin.relocate_firmware("0x08008800")
|
||||
marlin.add_post_action(encrypt);
|
||||
marlin.add_post_action(encrypt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue