mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
Fix usable flash size report after PR 4111 --nobuild
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -136,7 +136,7 @@ jobs:
|
||||
tar xzf build/core2_firmware.tgz
|
||||
radio_addr=$(jq -r '.copro.radio.files[0].address' core2_firmware/Manifest.json)
|
||||
flash_base=0x8000000
|
||||
min_gap=$((2 * 4 * 1024))
|
||||
min_gap=$((0 * 4 * 1024))
|
||||
flash_free_total=$((radio_addr - flash_base - dfu_size_new))
|
||||
flash_free_usable=$((flash_free_total - min_gap))
|
||||
FLASH_FREE=$(echo $flash_free_total | numfmt --to=iec-i --format=%.2fB | sed 's/.00B$/B/')
|
||||
|
||||
Reference in New Issue
Block a user