Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Fixed torch to turn it on when start scanning if torch mode is MTBTorchModeOn #36

Merged
merged 1 commit into from
Sep 2, 2015
Merged

Conversation

felipowsky
Copy link
Contributor

I noticed this issue when I tried to start scanning with torch mode set to MTBTorchModeOn.
If I tried to do that it wouldn't work because hasExistingSession property was still NO.

You can reproduce this issue using the following code:

_scanner = [[MTBBarcodeScanner alloc] initWithPreviewView:_previewView];
_scanner.torchMode = MTBTorchModeOn;
[_scanner startScanningWithResultBlock:^(NSArray *codes) {
}];

@mikebuss
Copy link
Owner

mikebuss commented Sep 2, 2015

Thanks - good catch!

mikebuss added a commit that referenced this pull request Sep 2, 2015
Fixed torch to turn it on when start scanning if torch mode is MTBTorchModeOn
@mikebuss mikebuss merged commit e6e4e71 into mikebuss:develop Sep 2, 2015
@felipowsky felipowsky deleted the torch-fix branch September 2, 2015 00:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants