correct torch setting

git-svn-id: https://zxing.googlecode.com/svn/trunk@1889 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2011-08-18 15:03:35 +00:00
parent e9bcd9befb
commit 229b8fd408

View file

@ -494,7 +494,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
if ( status ) {
[device setTorchMode:AVCaptureTorchModeOn];
} else {
[device setTorchMode:AVCaptureTorchModeOn];
[device setTorchMode:AVCaptureTorchModeOff];
}
}
[device unlockForConfiguration];