mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Issue 903 logic error for setting torch
git-svn-id: https://zxing.googlecode.com/svn/trunk@1853 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
245d432cd0
commit
3b9dccf95f
|
@ -492,7 +492,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
|
|||
if ( status ) {
|
||||
[device setTorchMode:AVCaptureTorchModeOn];
|
||||
} else {
|
||||
[device setTorchMode:AVCaptureTorchModeOn];
|
||||
[device setTorchMode:AVCaptureTorchModeOff];
|
||||
}
|
||||
}
|
||||
[device unlockForConfiguration];
|
||||
|
|
Loading…
Reference in a new issue