mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-08-04 20:43:55 -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)
|
||||
|
|
|
@ -98,6 +98,9 @@
|
|||
#if ENABLED(TOUCH_SCREEN_CALIBRATION)
|
||||
#define HAS_MENU_TOUCH_SCREEN
|
||||
#endif
|
||||
#if HAS_LEVELING || HAS_BED_PROBE
|
||||
#define HAS_MENU_PROBE_LEVEL
|
||||
#endif
|
||||
#if ENABLED(ASSISTED_TRAMMING_WIZARD)
|
||||
#define HAS_MENU_TRAMMING_WIZARD
|
||||
#endif
|
||||
|
|
|
@ -24,7 +24,7 @@ if pioutil.is_pio_build():
|
|||
marlin.relocate_vtab(LD_FLASH_OFFSET)
|
||||
|
||||
# Flash size
|
||||
maximum_flash_size = int(board.get("upload.maximum_size") / 1024)
|
||||
maximum_flash_size = board.get("upload.maximum_size") // 1024
|
||||
marlin.replace_define('STM32_FLASH_SIZE', maximum_flash_size)
|
||||
|
||||
# Get upload.maximum_ram_size (defined by /buildroot/share/PlatformIO/boards/VARIOUS.json)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue