123412341234

This commit is contained in:
Stoyan Zlatev
2023-09-25 12:44:12 +02:00
parent 909e259209
commit 70b378c734
6 changed files with 33 additions and 13 deletions
@@ -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);
}
}