sangwq 2 years ago
parent
commit
57661c7f78
1 changed files with 9 additions and 6 deletions
  1. 9 6
      Venus/Venus_RT/Devices/AdTecRF.cs

+ 9 - 6
Venus/Venus_RT/Devices/AdTecRF.cs

@@ -1,4 +1,5 @@
 using System;
+using System.Threading.Tasks;
 using System.Collections;
 using System.Text.RegularExpressions;
 using Aitex.Core.Common.DeviceData;
@@ -796,13 +797,15 @@ namespace Venus_RT.Devices
         {
             base.SetMatchPosition(c1, c2, out reason);
 
-            this.SetWorkMode(EnumRfMatchTuneMode.Manual);
-            this.SetPosition(c1, c2);
-            this.SetPresetMemory(0);
-            this.SetWorkMode(EnumRfMatchTuneMode.Auto);
+            SetWorkMode(EnumRfMatchTuneMode.Manual);
+
+            Task.Delay(500)
+                .ContinueWith(_ => SetPosition(c1, c2))
+                .ContinueWith(_ => Task.Delay(500))
+                .ContinueWith(_ => SetPresetMemory(0))
+                .ContinueWith(_ => Task.Delay(500))
+                .ContinueWith(_ => SetWorkMode(EnumRfMatchTuneMode.Auto));
 
-            TunePosition1 = c1;
-            TunePosition2 = c2;
             reason = "";
         }