Skip to content

Commit

Permalink
[Sigma] Tiny update
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Sep 28, 2023
1 parent 2723923 commit 2cff34a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/TethrPTPUSB/TethrSigma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
OperationResult,
OperationResultStatus,
TakePhotoOption,
UnsupportedConfigDesc,
} from '../Tethr'
import {TethrObject} from '../TethrObject'
import {TethrStorage} from '../TethrStorage'
Expand Down Expand Up @@ -127,7 +128,7 @@ const ConfigListSigma: ConfigName[] = [
'whiteBalance',
]

const SigmaExpirationMs = 50
const SigmaExpirationMs = 16
const SigmaCheckConfigIntervalMs = 1000

export class TethrSigma extends TethrPTPUSB {
Expand Down Expand Up @@ -455,6 +456,10 @@ export class TethrSigma extends TethrPTPUSB {
const min = decodeFocalLength(lensWideFocalLength)
const max = decodeFocalLength(lensTeleFocalLength)

if (min === 0 && max === 0) {
return UnsupportedConfigDesc
}

return {
writable: false,
value,
Expand Down

0 comments on commit 2cff34a

Please sign in to comment.