better connection controls

This commit is contained in:
nikzori
2024-11-11 10:45:55 +03:00
parent b5dbd8fc9c
commit 7d0162059d

View File

@@ -99,7 +99,7 @@ namespace Gidrolock_Modbus_Scanner
} }
#endregion #endregion
#region Write Single Coil/Register #region Write Single Coil/Register
public static async Task<bool> WriteSingle(SerialPort port, FunctionCode functionCode, byte address, ushort start, uint value) public static async Task<bool> WriteSingle(SerialPort port, FunctionCode functionCode, byte address, ushort start, uint value)
{ {
@@ -119,7 +119,7 @@ namespace Gidrolock_Modbus_Scanner
} }
*/ */
} }
#endregion
public static bool ParseResponse(byte[] res, ref string verbose) public static bool ParseResponse(byte[] res, ref string verbose)
{ {
try try
@@ -177,4 +177,3 @@ namespace Gidrolock_Modbus_Scanner
} }
} }
} }