delete the sleeping thread

This commit is contained in:
atef 2025-11-18 02:31:09 +01:00
parent 79b7563401
commit c1674f352c
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class ModbusDevice<[DynamicallyAccessedMembers(All)] R> where R : notnull
foreach (var batch in _Batches) foreach (var batch in _Batches)
{ {
batch.Read(record); batch.Read(record);
Thread.Sleep(30); // this added mainly for Growatt reading //Thread.Sleep(30); // this added mainly for Growatt reading
} }
return record; return record;
} }
@ -51,7 +51,7 @@ public class ModbusDevice<[DynamicallyAccessedMembers(All)] R> where R : notnull
foreach (var batch in _Batches) foreach (var batch in _Batches)
{ {
batch.Write(record); batch.Write(record);
Thread.Sleep(50); // this added mainly for Growatt reading //Thread.Sleep(50); // this added mainly for Growatt reading
} }
} }
} }