mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -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 ) {
|
if ( status ) {
|
||||||
[device setTorchMode:AVCaptureTorchModeOn];
|
[device setTorchMode:AVCaptureTorchModeOn];
|
||||||
} else {
|
} else {
|
||||||
[device setTorchMode:AVCaptureTorchModeOn];
|
[device setTorchMode:AVCaptureTorchModeOff];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[device unlockForConfiguration];
|
[device unlockForConfiguration];
|
||||||
|
|
Loading…
Reference in a new issue