Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Fix mftest using disabled MOTHERBOARD
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Sep 17, 2024
1 parent 09de5e7 commit 353ede8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildroot/bin/mftest
Original file line number Diff line number Diff line change
Expand Up @@ -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 ; }
Expand Down

0 comments on commit 353ede8

Please sign in to comment.