Skip to content

Commit

Permalink
Added functionality of usage M7 chip if available
Browse files Browse the repository at this point in the history
  • Loading branch information
arturdev committed Mar 20, 2014
1 parent d1feecd commit 4e0069e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions MotionDetection.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
3E0EFF0D18C85C5400F9C33B /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0500;
LastUpgradeCheck = 0510;
ORGANIZATIONNAME = "Artur Mkrtchyan";
TargetAttributes = {
3E0EFF3518C85C5400F9C33B = {
Expand Down Expand Up @@ -379,8 +379,9 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
ONLY_ACTIVE_ARCH = YES;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = iphoneos;
VALID_ARCHS = "armv7 armv7s";
};
name = Debug;
};
Expand Down Expand Up @@ -414,6 +415,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
VALID_ARCHS = "armv7 armv7s";
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion MotionDetection/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (void)viewDidLoad
// Do any additional setup after loading the view, typically from a nib.

[SOMotionDetector sharedInstance].delegate = self;
[SOMotionDetector sharedInstance].useM7IfAvailable = self; //
[SOMotionDetector sharedInstance].useM7IfAvailable = YES; //Use M7 chip if available, otherwise use lib's algorithm
[[SOMotionDetector sharedInstance] startDetection];

}
Expand Down
2 changes: 1 addition & 1 deletion SOMotionDetector/SOMotionDetector.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ typedef enum
* Set this parameter before calling startDetection method.
* Available only on devices that have M7 chip. At this time only the iPhone 5S, the iPad Air and iPad mini with retina display have the M7 coprocessor.
*/
@property (nonatomic) BOOL useM7IfAvailable;
@property (nonatomic) BOOL useM7IfAvailable NS_AVAILABLE_IOS(7_0);


/**
Expand Down

0 comments on commit 4e0069e

Please sign in to comment.