Skip to content

Commit

Permalink
#3: increased sensor update rate to maximum
Browse files Browse the repository at this point in the history
Closes #3.
  • Loading branch information
kindOfCurly committed May 5, 2023
1 parent 53a4f1c commit fe8582e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/android/dippid/DebugFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ class DebugFragment : Fragment(R.layout.fragment_debug), SensorEventListener {
sensorManager.registerListener(
this,
sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
SensorManager.SENSOR_DELAY_NORMAL
SensorManager.SENSOR_DELAY_FASTEST
)
sensorManager.registerListener(
this,
sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE),
SensorManager.SENSOR_DELAY_NORMAL
SensorManager.SENSOR_DELAY_FASTEST
)
sensorManager.registerListener(
this,
sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY),
SensorManager.SENSOR_DELAY_NORMAL
SensorManager.SENSOR_DELAY_FASTEST
)

// init UI
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit fe8582e

Please sign in to comment.