Browse Source

Make opt_set, opt_set_adv, pins_set also enable

Scott Lahteine 6 years ago
parent
commit
71d06ef1b2

+ 1
- 1
buildroot/bin/opt_set View File

@@ -2,4 +2,4 @@
2 2
 
3 3
 SED=$(which gsed || which sed)
4 4
 
5
-eval "${SED} -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration.h"
5
+eval "${SED} -E -i 's/(\/\/)?(#define \b${1}\b).*$/\2 ${2}/g' Marlin/Configuration.h"

+ 1
- 1
buildroot/bin/opt_set_adv View File

@@ -2,4 +2,4 @@
2 2
 
3 3
 SED=$(which gsed || which sed)
4 4
 
5
-eval "${SED} -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration_adv.h"
5
+eval "${SED} -E -i 's/(\/\/)?(#define \b${1}\b).*$/\2 ${2}/g' Marlin/Configuration_adv.h"

+ 1
- 1
buildroot/bin/pins_set View File

@@ -2,4 +2,4 @@
2 2
 
3 3
 SED=$(which gsed || which sed)
4 4
 
5
-eval "${SED} -i 's/\(#define \b${2}\b\).*$/\1 ${3}/g' Marlin/src/pins/pins_${1}.h"
5
+eval "${SED} -E -i 's/(\/\/)?(#define \b${2}\b).*$/\2 ${3}/g' Marlin/src/pins/pins_${1}.h"

+ 1
- 1
buildroot/share/tests/megaatmega2560_tests View File

@@ -90,7 +90,7 @@ opt_enable ULTIMAKERCONTROLLER SDSUPPORT
90 90
 opt_enable PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE PCA9632
91 91
 opt_enable_adv BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS
92 92
 opt_enable_adv ADVANCED_PAUSE_FEATURE ADVANCED_PAUSE_CONTINUOUS_PURGE FILAMENT_LOAD_UNLOAD_GCODES PARK_HEAD_ON_PAUSE LCD_INFO_MENU M114_DETAIL
93
-opt_set_adv PWM_MOTOR_CURRENT {1300,1300,1250}
93
+opt_set_adv PWM_MOTOR_CURRENT "{ 1300, 1300, 1250 }"
94 94
 opt_set_adv I2C_SLAVE_ADDRESS 63
95 95
 exec_test $1 $2 "MINIRAMBO for PWM_MOTOR_CURRENT etc"
96 96
 #

Loading…
Cancel
Save