delete the sleeping thread
This commit is contained in:
parent
79b7563401
commit
c1674f352c
|
|
@ -41,7 +41,7 @@ public class ModbusDevice<[DynamicallyAccessedMembers(All)] R> where R : notnull
|
|||
foreach (var batch in _Batches)
|
||||
{
|
||||
batch.Read(record);
|
||||
Thread.Sleep(30); // this added mainly for Growatt reading
|
||||
//Thread.Sleep(30); // this added mainly for Growatt reading
|
||||
}
|
||||
return record;
|
||||
}
|
||||
|
|
@ -51,7 +51,7 @@ public class ModbusDevice<[DynamicallyAccessedMembers(All)] R> where R : notnull
|
|||
foreach (var batch in _Batches)
|
||||
{
|
||||
batch.Write(record);
|
||||
Thread.Sleep(50); // this added mainly for Growatt reading
|
||||
//Thread.Sleep(50); // this added mainly for Growatt reading
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue