jesus christ the serial port in sharp is so clunky

This commit is contained in:
nikzori
2024-12-06 16:32:10 +03:00
parent 5716811f6f
commit c26d6084f3
5 changed files with 175 additions and 92 deletions

View File

@@ -25,12 +25,12 @@ namespace Gidrolock_Modbus_Scanner
{
public string name;
public RegisterType registerType;
public int address;
public int length;
public ushort address;
public ushort length;
public string dataType;
public bool readOnce;
public Entry(string name, RegisterType registerType, int address, int length, string dataType, bool readOnce)
public Entry(string name, RegisterType registerType, ushort address, ushort length, string dataType, bool readOnce)
{
this.name = name;
this.registerType = registerType;