We wcześniejszej wersji moje własne menu zdefiniowane w printer.cfg nadpisywało w całości defaultowe menu.cfg.
1. Obecnie aby wyłączyć nie interesujące mnie funkcje muszę je nadpisywać czymś np. takim:
Kod: Zaznacz cały
[menu __main __control __homexy]
type: command
enable: False
name: Home X/Y
2. Nie mogę ich właściwie posortować.
Nowe opcje można pozycjonować za pomocą opcji "index" to działa
Kod: Zaznacz cały
[menu __main __control __power]
index: 0
type: input
enable: {not printer.idle_timeout.state == "Printing"}
name: Power off: {'ON ' if menu.input else 'OFF'}
input: {printer['output_pin shutdown'].value}
input_min: 0
input_max: 1
input_step: 1
gcode:
SET_PIN PIN=shutdown VALUE={1 if menu.input else 0}
Kod: Zaznacz cały
[menu __main __control __disable]
index: 1
type: command
name: Steppers off
gcode:
M84
M18
[menu __main __control __home]
index: 2
type: command
enable: {not printer.idle_timeout.state == "Printing"}
name: Home All
gcode: G28
To samo dotyczy "main menu" - index nie działa
Kod: Zaznacz cały
### menu control ###
[menu __main __control]
index: 0
type: list
name: Control