Explorar o código

修改串口数据读取

章政 %!s(int64=8) %!d(string=hai) anos
pai
achega
56d7ac5dcc

+ 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)
                             {