Skip to content

Commit 7ccc4ea

Browse files
author
tchap
committed
Some tweaks
1 parent e8ac06f commit 7ccc4ea

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

PrintrBotPlugin/PrintrBotPanel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ private void buttonCalibrate_Click(object sender, EventArgs e)
389389
this.calibrating = true;
390390

391391
/* STEP 1 */
392+
buttonCalibrate.Enabled = false;
392393
buttonCalibrate.Text = Properties.Resources.CalibrateButton_Cancel;
393394
labelCalibration.Text = Properties.Resources.Calibrate_Step1;
394395

@@ -405,8 +406,6 @@ private void buttonCalibrate_Click(object sender, EventArgs e)
405406
this.injectCommand("G28 Z0");
406407
this.injectCommand("G29");
407408

408-
System.Threading.Thread.Sleep(3); // Wait for G29 a bit
409-
410409
/* STEP 2 */
411410
// Then run job
412411
var context = TaskScheduler.FromCurrentSynchronizationContext();
@@ -419,6 +418,7 @@ private void buttonCalibrate_Click(object sender, EventArgs e)
419418
double count = 0.0;
420419
while ((line = reader.ReadLine()) != null && this.calibrating == true)
421420
{
421+
buttonCalibrate.Enabled = true;
422422
count++;
423423
var token = Task.Factory.CancellationToken;
424424
Task.Factory.StartNew(() =>
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)