Skip to content

Commit

Permalink
Bugfix: if sensors are running, do not try to start again.
Browse files Browse the repository at this point in the history
Fixes #1887.
  • Loading branch information
dennisguse committed Apr 12, 2024
1 parent 7bbdd55 commit 13eb5c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public void tryStartSensors() {
private synchronized void startSensors() {
if (isSensorStarted()) {
Log.i(TAG, "sensors already started; skipping");
return;
}
Log.i(TAG, "startSensors");
wakeLock = SystemUtils.acquireWakeLock(this, wakeLock);
Expand Down

0 comments on commit 13eb5c3

Please sign in to comment.