mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-06 16:57:11 +00:00
End gcode contains firmware-conditional M400 waits for air purification, timelapse capture, and sound notification that are post-print operations. These were incorrectly included in M73 total time, inflating the estimate. The fix detects MACHINE_END_GCODE_START tag during the streaming parse (process_tags) and sets m_skip_end_gcode_delays=true. process_M400 then skips timed delays (S/P params) in the end gcode scope. BBS achieves the same effect by dropping leftover in calculate_time (is_final=true). We skip at the source instead, which is more surgical and leaves calculate_time behavior unchanged for all printers. Affects all BBL printers with MACHINE_END_GCODE_START tag. Non-BBL printers are unaffected (no tag = no skip).