From ca7658e52e77c3c92d6994c9a31c19402f866a56 Mon Sep 17 00:00:00 2001 From: xyy <544939200@qq.com> Date: Tue, 12 May 2026 16:00:30 +0800 Subject: [PATCH] --- 头罩视野slove/头罩视野/Views/PageTest.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/头罩视野slove/头罩视野/Views/PageTest.xaml.cs b/头罩视野slove/头罩视野/Views/PageTest.xaml.cs index 6603c96..0264bce 100644 --- a/头罩视野slove/头罩视野/Views/PageTest.xaml.cs +++ b/头罩视野slove/头罩视野/Views/PageTest.xaml.cs @@ -71,7 +71,7 @@ namespace 头罩视野.Views testTimerForLight = new DispatcherTimer(); testTimerForLight.Interval = TimeSpan.FromMilliseconds(1000); // 500ms = 0.5秒 - testTimerForLight.Tick += testTimerForLight; + testTimerForLight.Tick += testTimerForLightTick; //// 判断连接 if (!ModbusHelper.IsConnected) @@ -802,6 +802,7 @@ namespace 头罩视野.Views _timer.Start(); ma = new Function(_modbusMaster); c = new DataChange(); + testTimerForLight.Start(); //zmsyarea.Text = "4.00"; // 左目 //smsyarea.Text = "5.00"; // 双目 //kbsyarea.Text = "6.00"; // 空白