Skip to content

Commit

Permalink
[desktop]: Prevent exposure time be zero
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Nov 9, 2024
1 parent 4ccd965 commit e9aa070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/src/app/camera/exposure-time.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class ExposureTimeComponent implements AfterViewInit, OnChanges {

this.current.min = Math.max(1, Math.trunc(((this.min || 1) * b) / 60000000))
this.current.max = Math.max(1, Math.trunc(((this.max || 600000000) * b) / 60000000))
this.current.exposureTime = Math.trunc((value * b) / a)
this.current.exposureTime = Math.max(1, Math.trunc((value * b) / a))

const exposureTimeInMicroseconds = Math.trunc((this.current.exposureTime * 60000000) / b)

Expand Down

0 comments on commit e9aa070

Please sign in to comment.