mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-11 08:47:48 -06:00
🚸 Probe / Level Menu (#27393)
* 🎨 Housekeeping * 🚸 Tweak UBL menu * 🚸 Babystep Probe specific titles * 🚸 Probe / Level Menu
This commit is contained in:
parent
1916d4e27f
commit
c7e62b33d1
57 changed files with 430 additions and 479 deletions
|
@ -34,7 +34,7 @@ if pioutil.is_pio_build():
|
|||
|
||||
for loop_counter in range(0, block_size):
|
||||
# meant to make sure different bits of the key are used.
|
||||
xor_seed = int(loop_counter / key_length)
|
||||
xor_seed = loop_counter // key_length
|
||||
|
||||
# IP is a scratch register / R12
|
||||
ip = loop_counter - (key_length * xor_seed)
|
||||
|
@ -83,7 +83,7 @@ if pioutil.is_pio_build():
|
|||
output_file.write(struct.pack("<I", file_key))
|
||||
|
||||
#TODO - how to enforce that the firmware aligns to block boundaries?
|
||||
block_count = int(len(input_file) / block_size)
|
||||
block_count = len(input_file) // block_size
|
||||
print ("Block Count is ", block_count)
|
||||
for block_number in range(0, block_count):
|
||||
block_offset = (block_number * block_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue