Fix: uninitialized Pressure Advance value in G-code preview (#17746)

`GCodeProcessor::m_pressure_advance` was not set in `reset()`, so G-code without a pressure advance command showed a random PA value in the preview. It is now reset to 0 with the other per-move state, and a test checks that a reset processor does not keep the previous G-code's value.
This commit is contained in:
yw4z authored and GitHub committed 2026-11-21 08:39:29 -06:00
1 parent 3bc32c8b04
commit f78db404e9
2 files changed
+31

No files matched your search

+1
View File
@@ -3779,6 +3779,7 @@ void GCodeProcessor::reset()
m_travel_dist = 0.0f;
m_fan_speed = 0.0f;
m_z_offset = 0.0f;
m_pressure_advance = 0.0f;
m_extrusion_role = erNone;