瀏覽代碼

🔨 Misc. schema updates

Scott Lahteine 1 年之前
父節點
當前提交
e701e0bb25
共有 2 個文件被更改,包括 11 次插入6 次删除
  1. 6
    1
      Marlin/Configuration.h
  2. 5
    5
      buildroot/share/PlatformIO/scripts/schema.py

+ 6
- 1
Marlin/Configuration.h 查看文件

141
 // Choose your own or use a service like https://www.uuidgenerator.net/version4
141
 // Choose your own or use a service like https://www.uuidgenerator.net/version4
142
 //#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
142
 //#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
143
 
143
 
144
+// @section stepper drivers
145
+
144
 /**
146
 /**
145
  * Stepper Drivers
147
  * Stepper Drivers
146
  *
148
  *
240
   //#define SINGLENOZZLE_STANDBY_FAN
242
   //#define SINGLENOZZLE_STANDBY_FAN
241
 #endif
243
 #endif
242
 
244
 
245
+// @section multi-material
246
+
243
 /**
247
 /**
244
  * Multi-Material Unit
248
  * Multi-Material Unit
245
  * Set to one of these predefined models:
249
  * Set to one of these predefined models:
252
  *
256
  *
253
  * Requires NOZZLE_PARK_FEATURE to park print head in case MMU unit fails.
257
  * Requires NOZZLE_PARK_FEATURE to park print head in case MMU unit fails.
254
  * See additional options in Configuration_adv.h.
258
  * See additional options in Configuration_adv.h.
259
+ * :["PRUSA_MMU1", "PRUSA_MMU2", "PRUSA_MMU2S", "EXTENDABLE_EMU_MMU2", "EXTENDABLE_EMU_MMU2S"]
255
  */
260
  */
256
 //#define MMU_MODEL PRUSA_MMU2
261
 //#define MMU_MODEL PRUSA_MMU2
257
 
262
 
1629
 #define DISABLE_E false             // Disable the extruder when not stepping
1634
 #define DISABLE_E false             // Disable the extruder when not stepping
1630
 #define DISABLE_INACTIVE_EXTRUDER   // Keep only the active extruder enabled
1635
 #define DISABLE_INACTIVE_EXTRUDER   // Keep only the active extruder enabled
1631
 
1636
 
1632
-// @section machine
1637
+// @section motion
1633
 
1638
 
1634
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
1639
 // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
1635
 #define INVERT_X_DIR false
1640
 #define INVERT_X_DIR false

+ 5
- 5
buildroot/share/PlatformIO/scripts/schema.py 查看文件

213
 					elif cpos2 != -1 and (cpos2 < cpos1 or cpos1 == -1):
213
 					elif cpos2 != -1 and (cpos2 < cpos1 or cpos1 == -1):
214
 						cpos = cpos2
214
 						cpos = cpos2
215
 
215
 
216
-						# Expire end-of-line options after first use
217
-						if cline.startswith(':'): eol_options = True
218
-
219
 						# Comment after a define may be continued on the following lines
216
 						# Comment after a define may be continued on the following lines
220
-						if state == Parse.NORMAL and defmatch != None and cpos > 10:
217
+						if defmatch != None and cpos > 10:
221
 							state = Parse.EOL_COMMENT
218
 							state = Parse.EOL_COMMENT
222
 							comment_buff = []
219
 							comment_buff = []
223
 
220
 
225
 					if cpos != -1:
222
 					if cpos != -1:
226
 						cline, line = line[cpos+2:].strip(), line[:cpos].strip()
223
 						cline, line = line[cpos+2:].strip(), line[:cpos].strip()
227
 
224
 
228
-						# Strip leading '*' from block comments
229
 						if state == Parse.BLOCK_COMMENT:
225
 						if state == Parse.BLOCK_COMMENT:
226
+							# Strip leading '*' from block comments
230
 							if cline.startswith('*'): cline = cline[1:].strip()
227
 							if cline.startswith('*'): cline = cline[1:].strip()
228
+						else:
229
+							# Expire end-of-line options after first use
230
+							if cline.startswith(':'): eol_options = True
231
 
231
 
232
 						# Buffer a non-empty comment start
232
 						# Buffer a non-empty comment start
233
 						if cline != '':
233
 						if cline != '':

Loading…
取消
儲存