Skip to content

Commit

Permalink
refractoring
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-photo committed Aug 15, 2024
1 parent 555e0b9 commit 0716bb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ninaAPI/WebService/V2/EquipmentControllerV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static async Task<HttpResponse> 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
{
Expand All @@ -162,7 +162,6 @@ public static async Task<HttpResponse> 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);


Expand Down

0 comments on commit 0716bb2

Please sign in to comment.