Explorar el Código

修改串口数据读取

章政 hace 8 años
padre
commit
56d7ac5dcc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      UAS-MES/FunctionCode/SystemSetting/SystemSetting_ScaleTest.cs

+ 1 - 1
UAS-MES/FunctionCode/SystemSetting/SystemSetting_ScaleTest.cs

@@ -76,7 +76,7 @@ namespace UAS_MES.SystemSetting
                         {
                             try
                             {
-                                Weight.Text = Regex.Replace(serialPort1.ReadLine(), "\\D+", "");
+                                Weight.Text = serialPort1.ReadLine();
                             }
                             catch (Exception)
                             {