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];