From 229b8fd40877b95c9044422c9761234b4e1a54f6 Mon Sep 17 00:00:00 2001 From: "smparkes@smparkes.net" Date: Thu, 18 Aug 2011 15:03:35 +0000 Subject: [PATCH] correct torch setting git-svn-id: https://zxing.googlecode.com/svn/trunk@1889 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- iphone/ZXingWidget/Classes/ZXingWidgetController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/ZXingWidget/Classes/ZXingWidgetController.m b/iphone/ZXingWidget/Classes/ZXingWidgetController.m index 4a4c6d326..2a44dd1a2 100755 --- a/iphone/ZXingWidget/Classes/ZXingWidgetController.m +++ b/iphone/ZXingWidget/Classes/ZXingWidgetController.m @@ -494,7 +494,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer if ( status ) { [device setTorchMode:AVCaptureTorchModeOn]; } else { - [device setTorchMode:AVCaptureTorchModeOn]; + [device setTorchMode:AVCaptureTorchModeOff]; } } [device unlockForConfiguration];