🧑💻 EXTRUDER_LOOP macro
This commit is contained in:
parent
8ba6e8a74d
commit
a80a303cbe
15 changed files with 62 additions and 61 deletions
|
|
@ -145,9 +145,9 @@ void menu_advanced_settings();
|
|||
EDIT_ITEM(uint8, MSG_TOOL_MIGRATION_END, &migration.last, 0, EXTRUDERS - 1);
|
||||
|
||||
// Migrate to a chosen extruder
|
||||
LOOP_L_N(s, EXTRUDERS) {
|
||||
if (s != active_extruder) {
|
||||
ACTION_ITEM_N_P(s, msg_migrate, []{
|
||||
EXTRUDER_LOOP() {
|
||||
if (e != active_extruder) {
|
||||
ACTION_ITEM_N_P(e, msg_migrate, []{
|
||||
char cmd[12];
|
||||
sprintf_P(cmd, PSTR("M217 T%i"), int(MenuItemBase::itemIndex));
|
||||
queue.inject(cmd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue