Stop writing the fan speed marker at layer changes

Bambu Studio's cooling buffer read ;_SET_FAN_SPEED_CHANGING_LAYER to set
the layer's fan speed after the layer change. Orca's cooling buffer no
longer reads it, since the merge of Bambu Studio 1.7.4, so the marker
was left in every file as a comment. It sent no command, so nothing
else in the G-code changes.
This commit is contained in:
Ian Bassi committed 2026-11-30 14:27:08 -03:00
1 parent 1a57ea3a13
commit 51cfff89c6
2 files changed
+8 -3

No files matched your search

+8
View File
@@ -1083,3 +1083,11 @@ TEST_CASE("The layer count leaves out layers that print nothing", "[GCode][Regre
CHECK(placeholder == layer_changes);
CHECK(trailer == layer_changes);
}
TEST_CASE("Layer changes leave no fan speed marker in the G-code", "[GCode][Regression]")
{
// Nothing reads the marker that Bambu Studio's cooling buffer took out again.
const std::string gcode = Test::slice({ Test::cube(5) }, DynamicPrintConfig::full_print_config());
CHECK(gcode.find("_SET_FAN_SPEED_CHANGING_LAYER") == std::string::npos);
}