Thread.sleep

This commit is contained in:
fabjuuuh
2020-10-09 12:57:48 +02:00
parent 749498ba5b
commit 4afbbe4c38

View File

@@ -94,13 +94,13 @@ namespace DokterApp
public bool IsReading { get; set; }
async private void Read()
private void Read()
{
var r = new Random();
while (IsReading)
{
await Task.Delay(150);
Thread.Sleep(150);
var now = DateTime.Now;
_trend += r.Next(-8, 10);