From 0716bb2e5662196cb46885532c80fbb6c68a49ae Mon Sep 17 00:00:00 2001 From: rennmaus-coder <77056626+rennmaus-coder@users.noreply.github.com> Date: Thu, 15 Aug 2024 18:45:10 +0200 Subject: [PATCH] refractoring --- ninaAPI/WebService/V2/EquipmentControllerV2.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ninaAPI/WebService/V2/EquipmentControllerV2.cs b/ninaAPI/WebService/V2/EquipmentControllerV2.cs index aea62c8..7c2e844 100644 --- a/ninaAPI/WebService/V2/EquipmentControllerV2.cs +++ b/ninaAPI/WebService/V2/EquipmentControllerV2.cs @@ -140,7 +140,7 @@ public static async Task Camera(string action, CaptureParameter ca } else if (CaptureTask is null && captureParameter.getResult) { - response.Response = "No capture processed"; + response.Response = Utility.CreateErrorTable(new Error("No capture processed", 409)); } else { @@ -162,7 +162,6 @@ public static async Task Camera(string action, CaptureParameter ca PrepareImageParameters parameters = new PrepareImageParameters(autoStretch: true); IExposureData exposure = await AdvancedAPI.Controls.Imaging.CaptureImage(sequence, CaptureToken.Token, AdvancedAPI.Controls.StatusMediator.GetStatus()); - AdvancedAPI.Controls.ImageHistory.Add(exposure.MetaData.Image.Id, "SNAPSHOT"); renderedImage = await AdvancedAPI.Controls.Imaging.PrepareImage(exposure, parameters, CaptureToken.Token);