FIX: modify the error code after slice

jira: none
Change-Id: Ie82198d7037d75468d14da435e1df1dbf47d91fc
This commit is contained in:
zhimin.zeng 2025-01-17 17:37:45 +08:00 committed by lane.wei
parent 5a393666db
commit baf38583c9
2 changed files with 13 additions and 4 deletions

View File

@ -4316,7 +4316,9 @@ GCode::LayerResult GCode::process_layer(
if (need_insert_timelapse_gcode_for_traditional && !has_insert_timelapse_gcode) {
// The traditional model of thin-walled object will have flaws for I3
if (m_support_traditional_timelapse && printer_structure == PrinterStructure::psI3)
if (m_support_traditional_timelapse
&& printer_structure == PrinterStructure::psI3
&& m_config.timelapse_type.value == TimelapseType::tlTraditional)
m_support_traditional_timelapse = false;
// The traditional model will have flaws for multi_extruder when switching extruder

View File

@ -5721,6 +5721,7 @@ void GCodeProcessor::update_slice_warnings()
}
if (!warning.params.empty()) {
warning.level = 3;
warning.msg = BED_TEMP_TOO_HIGH_THAN_FILAMENT;
warning.error_code = "1000C001";
m_result.warnings.push_back(warning);
@ -5751,6 +5752,7 @@ void GCodeProcessor::update_slice_warnings()
}
if (!warning.params.empty()) {
warning.level = 3;
warning.msg = NOZZLE_HRC_CHECKER;
warning.error_code = "1000C002";
m_result.warnings.push_back(warning);
@ -5762,6 +5764,11 @@ void GCodeProcessor::update_slice_warnings()
if (!m_result.support_traditional_timelapse) {
warning.level = 2;
warning.msg = NOT_SUPPORT_TRADITIONAL_TIMELAPSE;
warning.error_code = "10018003";
m_result.warnings.push_back(warning);
// Compatible with older version for A series
warning.level = 3;
warning.error_code = "1000C003";
m_result.warnings.push_back(warning);
}
@ -5770,19 +5777,19 @@ void GCodeProcessor::update_slice_warnings()
if (m_result.timelapse_warning_code & 1) {
warning.level = 1;
warning.msg = NOT_GENERATE_TIMELAPSE;
warning.error_code = "1001C001";
warning.error_code = "10014001";
m_result.warnings.push_back(warning);
}
if ((m_result.timelapse_warning_code >> 1) & 1) {
warning.level = 1;
warning.msg = NOT_GENERATE_TIMELAPSE;
warning.error_code = "1001C002";
warning.error_code = "10014002";
m_result.warnings.push_back(warning);
}
if ((m_result.timelapse_warning_code >> 2) & 1) {
warning.level = 2;
warning.msg = SMOOTH_TIMELAPSE_WITHOUT_PRIME_TOWER;
warning.error_code = "1001C004";
warning.error_code = "10018004";
m_result.warnings.push_back(warning);
}
}