sc 3 weeks ago
parent
commit
60baf3554a
  1. 9
      UserClass/AsyncSerialPortClient.cs
  2. 3
      View/MachinesView.xaml.cs

9
UserClass/AsyncSerialPortClient.cs

@ -236,6 +236,14 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass
}
catch (Exception ex) { LogGing.LogGingDATA("[ERR='" + ex + "']=Exception"); MainWindowViewModel.ERR_c++; }
}//系统设置表
else if (SYSAPI == "SC859")
{
try
{
}
catch (Exception ex) { LogGing.LogGingDATA("[ERR='" + ex + "']=Exception"); MainWindowViewModel.ERR_c++; }
}//信息
else if (SYSAPI == "SC910")
{
try
@ -263,6 +271,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass
};
await portclient.SetupAsync(new TouchSocketConfig()
.SetMaxBufferSize(1024 * 1024 * 100)
.SetMinBufferSize(1024 * 1024 * 10)
.SetSerialPortOption(new SerialPortOption()
{
BaudRate = BAUD,//波特率

3
View/MachinesView.xaml.cs

@ -158,6 +158,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
}
else
{//串口
}
}
}
@ -254,6 +255,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
}
else
{//串口
}
}
SysSet_view = true;
@ -283,6 +285,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
}
else
{//串口
}
}
ParameterSet_view = true;

Loading…
Cancel
Save