Skip to content

Commit

Permalink
Some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tchap committed Sep 16, 2014
1 parent e8ac06f commit 7ccc4ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PrintrBotPlugin/PrintrBotPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ private void buttonCalibrate_Click(object sender, EventArgs e)
this.calibrating = true;

/* STEP 1 */
buttonCalibrate.Enabled = false;
buttonCalibrate.Text = Properties.Resources.CalibrateButton_Cancel;
labelCalibration.Text = Properties.Resources.Calibrate_Step1;

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

System.Threading.Thread.Sleep(3); // Wait for G29 a bit

/* STEP 2 */
// Then run job
var context = TaskScheduler.FromCurrentSynchronizationContext();
Expand All @@ -419,6 +418,7 @@ private void buttonCalibrate_Click(object sender, EventArgs e)
double count = 0.0;
while ((line = reader.ReadLine()) != null && this.calibrating == true)
{
buttonCalibrate.Enabled = true;
count++;
var token = Task.Factory.CancellationToken;
Task.Factory.StartNew(() =>
Expand Down
Binary file modified PrintrBotPlugin/obj/Debug Repetier/PrintrBotPlugin.dll
Binary file not shown.
Binary file modified PrintrBotPlugin/obj/Debug Repetier/PrintrBotPlugin.pdb
Binary file not shown.

0 comments on commit 7ccc4ea

Please sign in to comment.