123412341234
This commit is contained in:
@@ -87,6 +87,12 @@
|
||||
this.pipeReader?.Dispose();
|
||||
this.pipeStream?.Dispose();
|
||||
}
|
||||
|
||||
public void Flush()
|
||||
{
|
||||
this.pipeStream.Flush();
|
||||
this.pipeReader.BaseStream.Flush();
|
||||
}
|
||||
}
|
||||
|
||||
partial class AutomaticTemperatureCalibration
|
||||
@@ -117,13 +123,15 @@
|
||||
this.shortTimer.Interval = 1_000;
|
||||
this.shortTimer.Elapsed += this.ShortTimerElapsed;
|
||||
|
||||
// this.shortTimer.Start();
|
||||
|
||||
this.shortTimer.Stop();
|
||||
|
||||
this.longTimer.Enabled = true;
|
||||
this.longTimer.AutoReset = true;
|
||||
this.longTimer.Interval = 300_000;
|
||||
this.longTimer.Elapsed += this.LongTimerElapsed;
|
||||
|
||||
|
||||
this.longTimer.Start();
|
||||
}
|
||||
|
||||
@@ -133,15 +141,15 @@
|
||||
|
||||
if (this.messuring)
|
||||
{
|
||||
System.Threading.Thread.Sleep(1000);
|
||||
|
||||
System.Threading.Thread.Sleep(1_000);
|
||||
|
||||
this.shortTimer.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.shortTimer.Stop();
|
||||
|
||||
System.Threading.Thread.Sleep(1000);
|
||||
System.Threading.Thread.Sleep(1_000);
|
||||
File.AppendAllText(this.messurementsFile, Environment.NewLine);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user