From c1674f352ca1b8f797d5d6af46ed88faa1feb797 Mon Sep 17 00:00:00 2001 From: atef Date: Tue, 18 Nov 2025 02:31:09 +0100 Subject: [PATCH] delete the sleeping thread --- csharp/Lib/Protocols/Modbus/Slaves/ModbusDevice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/Lib/Protocols/Modbus/Slaves/ModbusDevice.cs b/csharp/Lib/Protocols/Modbus/Slaves/ModbusDevice.cs index 327eede23..b8c332943 100644 --- a/csharp/Lib/Protocols/Modbus/Slaves/ModbusDevice.cs +++ b/csharp/Lib/Protocols/Modbus/Slaves/ModbusDevice.cs @@ -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 } } } \ No newline at end of file