Skip to content

Commit

Permalink
Fix whiteBalance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Apr 3, 2024
1 parent 797216b commit a04c97f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/stores/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ export const useCameraStore = defineStore('camera', () => {
cam.setLog(false)
await cam.open()

const initialConfigs = {...toRaw(configs.value)}

// Remove colorTemperature if whiteBalance is not manual
if (configs.value.whiteBalance !== 'manual') {
delete initialConfigs['colorTemperature']
}

await cam.importConfigs(configs.value)

cam.on('disconnect', () => {
Expand Down

0 comments on commit a04c97f

Please sign in to comment.