Leveling validation needs to be before line cutting

This commit is contained in:
LarsBrubaker 2021-02-09 15:40:08 -08:00
parent 12049c3890
commit 408d053934
2 changed files with 6 additions and 6 deletions

View file

@ -2401,11 +2401,6 @@ Make sure that your printer is turned on. Some printers will appear to be connec
accumulatedStream = new ToolSpeedMultiplierStream(Printer, accumulatedStream);
}
accumulatedStream = new BabyStepsStream(Printer, accumulatedStream);
bool enableLineSplitting = gcodeStream != null && Printer.Settings.GetValue<bool>(SettingsKey.enable_line_splitting);
accumulatedStream = maxLengthStream = new MaxLengthStream(Printer, accumulatedStream, enableLineSplitting ? 1 : 2000);
var doValidateLeveling = Printer.Settings.Helpers.ValidateLevelingWithProbe;
if (!LevelingPlan.NeedsToBeRun(Printer)
|| doValidateLeveling)
@ -2420,6 +2415,11 @@ Make sure that your printer is turned on. Some printers will appear to be connec
accumulatedStream = printLevelingStream = new PrintLevelingStream(Printer, accumulatedStream);
}
accumulatedStream = new BabyStepsStream(Printer, accumulatedStream);
bool enableLineSplitting = gcodeStream != null && Printer.Settings.GetValue<bool>(SettingsKey.enable_line_splitting);
accumulatedStream = maxLengthStream = new MaxLengthStream(Printer, accumulatedStream, enableLineSplitting ? 1 : 2000);
accumulatedStream = waitForTempStream = new WaitForTempStream(Printer, accumulatedStream);
accumulatedStream = ExtrusionMultiplierStream = new ExtrusionMultiplierStream(Printer, accumulatedStream);
accumulatedStream = FeedRateMultiplierStream = new FeedRateMultiplierStream(Printer, accumulatedStream);