Write the Standard Layer Change Tag on Belt Brim Apron Layers

Apron layers appended print_z to the layer change tag, unlike every other layer; write the plain tag line.
This commit is contained in:
Hanif Koh
2026-09-13 03:03:00 +08:00
parent a8a45439db
commit 62ef0fa4f8

View File

@@ -5342,8 +5342,7 @@ LayerResult GCode::process_belt_brim_layer(
// skip these layers entirely.
{
char buf[64];
sprintf(buf, ";%s%g\n", GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Layer_Change).c_str(), print_z);
gcode += buf;
gcode += ";" + GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Layer_Change) + "\n";
sprintf(buf, ";Z:%g\n", print_z);
gcode += buf;
const float band_height = float(height);