Fix #6839 with final tool preheating on multitool machines causing in… (#7405)

Fix #6839 with final tool preheating on multitool machines causing in appropriate temp settings

Seems like Orca is trying to preheat the next tool in a multitool print, and ends up calling a heater off command in the last 30 seconds of any print.

This happens because there's no handling to check if the next active tool is an actual valid tool index, or its a T-1 command to end the print  since we're using the last tool.

Simply moved the preheat commands into the conditional IF that automatically fixes this issue since the tool index is now properly evaluated.

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
HaythamB 2025-04-20 08:24:49 +03:00 committed by GitHub
parent e395ba18ad
commit d9c27f3dee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4602,7 +4602,6 @@ void GCodeProcessor::run_post_process()
if (m_print != nullptr)
m_print->active_step_add_warning(PrintStateBase::WarningLevel::CRITICAL, warning);
}
}
export_lines.insert_lines(
backtrace, cmd,
// line inserter
@ -4650,7 +4649,9 @@ void GCodeProcessor::run_post_process()
}
}
return line;
});
}
);
}
}
};