Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #338 from Hipo/master
Browse files Browse the repository at this point in the history
Fixed issue where flash mode was not being passed into capture settin…
  • Loading branch information
piemonte committed Feb 20, 2017
2 parents 0347b90 + 80d6837 commit 523a8e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/PBJVision.m
Expand Up @@ -1732,6 +1732,7 @@ - (void)capturePhoto
if ([AVCapturePhotoOutput class]) {
AVCapturePhotoSettings *settings = [AVCapturePhotoSettings photoSettingsWithFormat:@{AVVideoCodecKey : AVVideoCodecJPEG}];
settings.highResolutionPhotoEnabled = YES;
settings.flashMode = _currentDevice.flashMode;

[_captureOutputPhoto capturePhotoWithSettings:settings delegate:self];
}
Expand Down

0 comments on commit 523a8e9

Please sign in to comment.