参数地址的更改

This commit is contained in:
2025-06-16 18:17:28 +08:00
parent 0857eb9f59
commit 3150d73fcf
4 changed files with 6 additions and 4 deletions

View File

@@ -372,6 +372,7 @@ namespace CapMachine.Wpf.Services
if (ListCanDbcModel.Any(a => a.Name == Name))
{
//double.TryParse(ListCanDbcModel.FindFirst(a => a.Name == Name).SignalRtValue, out double Result1);
//return double.TryParse(ListCanDbcModel.FindFirst(a => a.Name == Name).SignalRtValue.Split(" ")[0], out double Result) == true ? Result : 0;
return double.TryParse(ListCanDbcModel.FindFirst(a => a.Name == Name).SignalRtValue.Split(" ")[0], out double Result) == true ? Result : 0;
}
return 0;