Skip to content

Commit 353ede8

Browse files
committed
🧑‍💻 Fix mftest using disabled MOTHERBOARD
1 parent 09de5e7 commit 353ede8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildroot/bin/mftest

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ if ((AUTO_BUILD)); then
163163
#
164164
# Get the MOTHERBOARD define value from the .h file and strip off the "BOARD_" prefix
165165
#
166-
ACODE='/[[:space:]]*#define[[:space:]]MOTHERBOARD[[:space:]]/ { sub(/^BOARD_/, "", $3); print $3 }'
166+
ACODE='/^[[:space:]]*#define[[:space:]]MOTHERBOARD[[:space:]]/ { sub(/^BOARD_/, "", $3); print $3 }'
167167
MB=$(awk "$ACODE" Marlin/Configuration.h 2>/dev/null)
168168
[[ -z $MB ]] && MB=$(awk "$ACODE" Marlin/Config.h 2>/dev/null)
169169
[[ -z $MB ]] && { echo "Error - Can't read MOTHERBOARD setting." ; exit 1 ; }

0 commit comments

Comments
 (0)