瀏覽代碼

修改串口数据读取

章政 8 年之前
父節點
當前提交
56d7ac5dcc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
                             {