From 4f2aaa47d3a38fe8002fba191d8980a2af62fa65 Mon Sep 17 00:00:00 2001 From: recrof Date: Sun, 27 Apr 2025 10:24:38 +0200 Subject: [PATCH] detect if we have nrf52 by probing for *.zip and *.hex output files --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 10cabe7a..095a1633 --- a/build.sh +++ b/build.sh @@ -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