From 353ede8208e053a5dc39aa12480d6c2079f08067 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 17 Sep 2024 11:51:51 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Fix=20mftes?= =?UTF-8?q?t=20using=20disabled=20MOTHERBOARD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildroot/bin/mftest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot/bin/mftest b/buildroot/bin/mftest index 492ef6c146a..e586b0aae35 100755 --- a/buildroot/bin/mftest +++ b/buildroot/bin/mftest @@ -163,7 +163,7 @@ if ((AUTO_BUILD)); then # # Get the MOTHERBOARD define value from the .h file and strip off the "BOARD_" prefix # - ACODE='/[[:space:]]*#define[[:space:]]MOTHERBOARD[[:space:]]/ { sub(/^BOARD_/, "", $3); print $3 }' + ACODE='/^[[:space:]]*#define[[:space:]]MOTHERBOARD[[:space:]]/ { sub(/^BOARD_/, "", $3); print $3 }' MB=$(awk "$ACODE" Marlin/Configuration.h 2>/dev/null) [[ -z $MB ]] && MB=$(awk "$ACODE" Marlin/Config.h 2>/dev/null) [[ -z $MB ]] && { echo "Error - Can't read MOTHERBOARD setting." ; exit 1 ; }