From 55c1dd880e02595017a01bb2b324a7c241c2e001 Mon Sep 17 00:00:00 2001 From: rennmaus-coder <77056626+rennmaus-coder@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:34:16 +0100 Subject: [PATCH] framing set coordinates doesnt wait for completion --- ninaAPI/WebService/V2/Application/Framing.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ninaAPI/WebService/V2/Application/Framing.cs b/ninaAPI/WebService/V2/Application/Framing.cs index 3740acd..ab53500 100644 --- a/ninaAPI/WebService/V2/Application/Framing.cs +++ b/ninaAPI/WebService/V2/Application/Framing.cs @@ -84,7 +84,7 @@ public void FramingInfo() // Framing Assistant View needs to have benn opened once before to be initialized [Route(HttpVerbs.Get, "/framing/set-coordinates")] - public async Task FramingSetCoordinates([QueryField] double RAangle, [QueryField] double DECangle) + public void FramingSetCoordinates([QueryField] double RAangle, [QueryField] double DECangle) { Logger.Debug($"API call: {HttpContext.Request.Url.AbsoluteUri}"); HttpResponse response = new HttpResponse(); @@ -93,7 +93,7 @@ public async Task FramingSetCoordinates([QueryField] double RAangle, [QueryField { IFramingAssistantVM framing = AdvancedAPI.Controls.FramingAssistant; - await framing.SetCoordinates(new DeepSkyObject(string.Empty, new Coordinates(Angle.ByDegree(RAangle), Angle.ByDegree(DECangle), Epoch.J2000), string.Empty, null)); + framing.SetCoordinates(new DeepSkyObject(string.Empty, new Coordinates(Angle.ByDegree(RAangle), Angle.ByDegree(DECangle), Epoch.J2000), string.Empty, null)); response.Response = "Coordinates updated"; } catch (Exception ex)