Skip to content

Commit

Permalink
[Sigma] Clear image DB before shooting
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Nov 1, 2023
1 parent 7a33e10 commit 0902a3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/TethrPTPUSB/TethrSigma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,8 +1155,14 @@ export class TethrSigma extends TethrPTPUSB {
async takePhoto({doDownload = true}: TakePhotoOption = {}): Promise<
OperationResult<TethrObject[]>
> {
if (this.#isCapturing) {
return {status: 'busy'}
}

this.#isCapturing = true

await this.clearImageDBAll()

const captureId = await this.executeSnapCommand(
SnapCaptureMode.NonAFCapture,
1
Expand Down

0 comments on commit 0902a3f

Please sign in to comment.