mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
correct torch setting
git-svn-id: https://zxing.googlecode.com/svn/trunk@1889 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
e9bcd9befb
commit
229b8fd408
|
@ -494,7 +494,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
|
|||
if ( status ) {
|
||||
[device setTorchMode:AVCaptureTorchModeOn];
|
||||
} else {
|
||||
[device setTorchMode:AVCaptureTorchModeOn];
|
||||
[device setTorchMode:AVCaptureTorchModeOff];
|
||||
}
|
||||
}
|
||||
[device unlockForConfiguration];
|
||||
|
|
Loading…
Reference in a new issue