mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-26 16:12:51 +00:00
🧑💻 Fix mftest using disabled MOTHERBOARD
This commit is contained in:
parent
09de5e76a7
commit
353ede8208
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ if ((AUTO_BUILD)); then
|
||||||
#
|
#
|
||||||
# Get the MOTHERBOARD define value from the .h file and strip off the "BOARD_" prefix
|
# 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)
|
MB=$(awk "$ACODE" Marlin/Configuration.h 2>/dev/null)
|
||||||
[[ -z $MB ]] && MB=$(awk "$ACODE" Marlin/Config.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 ; }
|
[[ -z $MB ]] && { echo "Error - Can't read MOTHERBOARD setting." ; exit 1 ; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue