You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/06/22 04:05:18 UTC
ios commit: [CB-943] decrease accelerometer interval from 100ms to
40ms
Updated Branches:
refs/heads/master 8b80632ab -> 46bff14c0
[CB-943] decrease accelerometer interval from 100ms to 40ms
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/46bff14c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/46bff14c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/46bff14c
Branch: refs/heads/master
Commit: 46bff14c07197131c067f69976827d38882ac6b0
Parents: 8b80632
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Jun 21 19:06:20 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Jun 21 19:06:20 2012 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVAccelerometer.m | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/46bff14c/CordovaLib/Classes/CDVAccelerometer.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVAccelerometer.m b/CordovaLib/Classes/CDVAccelerometer.m
index 8e821ab..3843bab 100644
--- a/CordovaLib/Classes/CDVAccelerometer.m
+++ b/CordovaLib/Classes/CDVAccelerometer.m
@@ -30,12 +30,8 @@
@synthesize callbackId, isRunning;
-// defaults to 100 msec
-#define kAccelerometerInterval 100
-// max rate of 40 msec
-#define kMinAccelerometerInterval 40
-// min rate of 1/sec
-#define kMaxAccelerometerInterval 1000
+// defaults to 10 msec
+#define kAccelerometerInterval 40
// g constant: -9.81 m/s^2
#define kGravitionalConstant -9.81