Merge pull request #229 from recrof/dev

build.sh: detect if we have nrf52 by probing for *.zip and *.hex output files
This commit is contained in:
ripplebiz 2025-05-01 12:01:25 +10:00 committed by GitHub
commit 9813ec6d96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
build.sh Normal file → Executable file
View file

@ -58,7 +58,7 @@ build_firmware() {
fi
# build .uf2 for nrf52 boards
if [[ $1 == *"RAK_4631"* || $1 == *"t1000e"* || $1 == *"t114"* || $1 == *"T-Echo"* || $1 == *"Faketec"* || $1 == *"ProMicro"* ]]; then
if [[ -f .pio/build/$1/firmware.zip && -f .pio/build/$1/firmware.hex ]]; then
python bin/uf2conv/uf2conv.py .pio/build/$1/firmware.hex -c -o .pio/build/$1/firmware.uf2 -f 0xADA52840
fi