Skip to content

Commit

Permalink
framing set coordinates doesnt wait for completion
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-photo committed Jan 2, 2025
1 parent 1814e46 commit 55c1dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ninaAPI/WebService/V2/Application/Framing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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)
Expand Down

0 comments on commit 55c1dd8

Please sign in to comment.