Commit f2018b3b authored by Anthony Carno's avatar Anthony Carno
Browse files

Updating view controller again based on testing; no light is showing, so I'm...

Updating view controller again based on testing; no light is showing, so I'm going to try forcing the decoder illumination and aimer
parent a3a3b9ff
...@@ -56,14 +56,15 @@ ...@@ -56,14 +56,15 @@
[self.sharedCaptuvoDevice addCaptuvoDelegate:self]; [self.sharedCaptuvoDevice addCaptuvoDelegate:self];
[self prepareForScanning]; //[self prepareForScanning];
[self.sharedCaptuvoDevice startDecoderHardware];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated. // Dispose of any resources that can be recreated.
[self.sharedCaptuvoDevice removeCaptuvoDelegate:self]; //[self.sharedCaptuvoDevice removeCaptuvoDelegate:self];
} }
...@@ -84,7 +85,7 @@ ...@@ -84,7 +85,7 @@
- (void) decoderReady { - (void) decoderReady {
[self.sharedCaptuvoDevice enableDecoderBeeperForGoodRead:YES persistSetting:NO]; [self.sharedCaptuvoDevice enableDecoderBeeperForGoodRead:YES persistSetting:NO];
[self.sharedCaptuvoDevice setDecoderSerialTriggerTimeoutInMilliSeconds:5000 persistSetting:NO]; //[self.sharedCaptuvoDevice setDecoderSerialTriggerTimeoutInMilliSeconds:5000 persistSetting:NO];
UIAlertView *decoderReady = [[UIAlertView alloc] initWithTitle:@"Decoder Status" message:@"Decoder ready!" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil]; UIAlertView *decoderReady = [[UIAlertView alloc] initWithTitle:@"Decoder Status" message:@"Decoder ready!" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[decoderReady show]; [decoderReady show];
...@@ -93,10 +94,14 @@ ...@@ -93,10 +94,14 @@
- (void)scanKeyAction:(ScanKeyStatus)status { - (void)scanKeyAction:(ScanKeyStatus)status {
if (status == ScanKeyPressing) { if (status == ScanKeyPressing) {
[self.sharedCaptuvoDevice enableDecoderIllumination:TRUE];
[self.sharedCaptuvoDevice enableDecoderAimer:TRUE];
[self.sharedCaptuvoDevice startDecoderScanning]; [self.sharedCaptuvoDevice startDecoderScanning];
} }
else if (status == ScanKeyReleased) { else if (status == ScanKeyReleased) {
[self.sharedCaptuvoDevice stopDecoderScanning]; [self.sharedCaptuvoDevice stopDecoderScanning];
[self.sharedCaptuvoDevice disableDecoderIllumination:TRUE];
[self.sharedCaptuvoDevice disableDecoderAimer:TRUE];
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment