Commit d958f768 authored by Alex Moore's avatar Alex Moore

Updated to fix bug where sled won't scan after screen locks (still needs to be tested)

parent b1b13488
......@@ -31,10 +31,14 @@
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
[[Captuvo sharedCaptuvoDevice] stopDecoderHardware] ;
[[Captuvo sharedCaptuvoDevice] stopPMHardware] ;
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
[[Captuvo sharedCaptuvoDevice] startDecoderHardware] ;
[[Captuvo sharedCaptuvoDevice] startPMHardware] ;
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
......@@ -43,6 +47,8 @@
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
[[Captuvo sharedCaptuvoDevice] stopDecoderHardware] ;
[[Captuvo sharedCaptuvoDevice] stopPMHardware] ;
}
@end
Markdown is supported
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