                 self._setupOutputMode(self.cameraOutputMode, oldCameraOutputMode: nil)
                 self._setupPreviewLayer()
                 validCaptureSession.commitConfiguration()
-                self._updateFlashMode(self.flashMode)
+                self._updateIlluminationMode(self.flashMode)
                 self._updateCameraQualityMode(self.cameraOutputQuality)
                 validCaptureSession.startRunning()
                 self._startFollowingDeviceOrientation()

            let inputPort = newLocationMetadataInput.ports[0]
            captureSession.add(AVCaptureConnection(inputPorts: [inputPort], output: videoOutput))
            
            
            
            videoOutput.startRecording(to: _tempFilePath(), recordingDelegate: self)
        } else {

    open var flashMode = CameraFlashMode.off {
        didSet {
            if cameraIsSetup && flashMode != oldValue {
                _updateIlluminationMode(flashMode)
            }
        }
    }
