Browse Source

修改串口数据读取

章政 8 years ago
parent
commit
56d7ac5dcc
1 changed files with 1 additions and 1 deletions
  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)
                             {