Fixed an issue that EXCLUDE_OBJECT_DEFINE info was written into gcode file regardless

This commit is contained in:
SoftFever 2023-08-27 23:57:42 +08:00
parent 85251de418
commit 96a8f92b65

View file

@ -1634,7 +1634,8 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
file.write_format("; EXECUTABLE_BLOCK_START\n");
// SoftFever
file.write(set_object_info(&print));
if( m_config.gcode_flavor.value == gcfKlipper && m_enable_exclude_object)
file.write(set_object_info(&print));
// adds tags for time estimators
file.write_format(";%s\n", GCodeProcessor::reserved_tag(GCodeProcessor::ETags::First_Line_M73_Placeholder).c_str());