Fixed problem with probe generating extra sample

issue: MatterHackers/MCCentral#4925
Bed leveling issues
This commit is contained in:
Lars Brubaker 2019-01-30 17:05:03 -08:00
parent 7bc437c836
commit 51b5a824b2
2 changed files with 2 additions and 4 deletions

View file

@ -103,9 +103,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
UiThread.RunOnIdle(() => NextButton.InvokeClick());
}
if (numberOfSamples-- > 0
&& !this.HasBeenClosed)
else if (!this.HasBeenClosed)
{
// add the next request for probe
printer.Connection.QueueLine("G30");