This commit is contained in:
Sergey
2021-06-15 13:12:14 +03:00
parent 3358523c70
commit 398bb884ec
568 changed files with 11799 additions and 8556 deletions

View File

@@ -6,6 +6,6 @@ NAM=${PINPATH[1]}
PIN=$2
VAL=$3
SED=$(which gsed || which sed)
SED=$(which gsed sed | head -n1)
eval "${SED} -i '/^[[:blank:]]*\(\/\/\)*[[:blank:]]*\(#define \+${PIN}\b\).*$/{s//\2 ${VAL}/;h};\${x;/./{x;q0};x;q9}' Marlin/src/pins/$DIR/pins_${NAM}.h" ||
(echo "ERROR: pins_set Can't find ${PIN}" >&2 && exit 9)