Skip to content

Commit f0ad1e9

Browse files
committed
πŸ§‘β€πŸ’» Update dev scripts
1 parent 414b1f8 commit f0ad1e9

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

β€Žbuildroot/bin/pins_set

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ SED=$(which gsed sed | head -n1)
99
shift
1010
while [[ $# > 1 ]]; do
1111
PIN=$1 ; VAL=$2
12-
eval "${SED} -i '/^[[:blank:]]*\(\/\/\)*[[:blank:]]*\(#define \+${PIN}\b\).*$/{s//\2 ${VAL}/;h};\${x;/./{x;q0};x;q9}' Marlin/src/pins/$DIR/pins_${NAM}.h" ||
13-
(echo "ERROR: pins_set Can't find ${PIN}" >&2 && exit 9)
12+
FOUT="${DIR}/pins_${NAM}.h"
13+
eval "${SED} -i '/^[[:blank:]]*\(\/\/\)*[[:blank:]]*\(#define \+${PIN}\b\).*$/{s//\2 ${VAL}/;h};\${x;/./{x;q0};x;q9}' Marlin/src/pins/${FOUT}" ||
14+
(echo "ERROR: pins_set Can't find ${PIN} in ${FOUT}" >&2 && exit 9)
1415
shift 2
1516
done

β€Žbuildroot/share/git/mfhelp

+19-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Marlin Firmware Commands:
88
99
firstpush ... Push and set-upstream the current branch to 'origin'
1010
ghpc ........ Push the current branch to its upstream branch
11-
ghtp ........ Set the transfer protolcol for all your remotes
11+
ghtp ........ Set the transfer protocol for all your remotes
1212
mfadd ....... Fetch a remote branch from any Marlin fork
1313
mfclean ..... Attempt to clean up merged and deleted branches
1414
mfdoc ....... Build the website, serve locally, and browse
@@ -25,4 +25,22 @@ Marlin Firmware Commands:
2525
2626
Enter [command] --help for more information.
2727
28+
Build / Test Commands:
29+
30+
mftest ............... Run a platform test locally with PlatformIO
31+
build_all_examples ... Build all configurations of a branch, stop on error
32+
33+
Modify Configuration.h / Configuration_adv.h:
34+
35+
opt_add .............. Add a configuration option (to the top of Configuration.h)
36+
opt_disable .......... Disable a configuration option (modifies )
37+
opt_enable ........... Enable a configuration option
38+
opt_set .............. Set the value of a configuration option
39+
use_example_configs .. Download configs from a remote branch on GitHub
40+
41+
Modify pins files:
42+
43+
pins_set ............. Set the value of a pin in a pins file
44+
pinsformat.js ........ Node.js script to format pins files
45+
2846
THIS

0 commit comments

Comments
Β (0)