瀏覽代碼

Make opt_set, opt_set_adv, pins_set also enable

Scott Lahteine 6 年之前
父節點
當前提交
71d06ef1b2
共有 4 個檔案被更改,包括 4 行新增4 行删除
  1. 1
    1
      buildroot/bin/opt_set
  2. 1
    1
      buildroot/bin/opt_set_adv
  3. 1
    1
      buildroot/bin/pins_set
  4. 1
    1
      buildroot/share/tests/megaatmega2560_tests

+ 1
- 1
buildroot/bin/opt_set 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存