From 81452009d7d4e34d52d811b75a64e217fc8a7667 Mon Sep 17 00:00:00 2001 From: justLV Date: Wed, 8 Apr 2026 10:53:58 -0700 Subject: [PATCH] Check for .ino.bin artifact to detect stale/missing builds Look for the actual firmware binary (*.ino.bin) instead of any *.bin when deciding whether to skip compilation. If the build dir exists but the artifact is missing, force a recompile automatically. --- flash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash.sh b/flash.sh index 31dbc56..6cef48b 100755 --- a/flash.sh +++ b/flash.sh @@ -145,7 +145,7 @@ echo "" # ------------------------------------------------------- NEEDS_COMPILE=true if [ "$FORCE_COMPILE" = false ] && [ -d "$BUILD_DIR" ]; then - BIN=$(find "$BUILD_DIR" -name "*.bin" -maxdepth 1 2>/dev/null | head -1) + BIN=$(find "$BUILD_DIR" -name "*.ino.bin" -maxdepth 1 2>/dev/null | head -1) if [ -n "$BIN" ]; then NEWER=$(find "$PROJECT_DIR" -maxdepth 1 \( -name "*.ino" -o -name "*.h" \) -newer "$BIN" 2>/dev/null | head -1) [ -z "$NEWER" ] && NEEDS_COMPILE=false