Put a delay in the com tester

Made the sync o print follow the printer better.
This commit is contained in:
Lars Brubaker 2015-01-09 15:49:08 -08:00
parent 5a98936302
commit 3d765929b5
4 changed files with 24 additions and 6 deletions

View file

@ -334,7 +334,13 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
private void SetAnimationPosition()
{
int currentLayer = PrinterConnectionAndCommunication.Instance.CurrentlyPrintingLayer;
if (currentLayer >= 0)
if (currentLayer <= 0)
{
selectLayerSlider.Value = 0;
layerRenderRatioSlider.SecondValue = 0;
layerRenderRatioSlider.FirstValue = 0;
}
else
{
selectLayerSlider.Value = currentLayer-1;
layerRenderRatioSlider.SecondValue = PrinterConnectionAndCommunication.Instance.RatioIntoCurrentLayer;