From 8eed8e9d8d24c9d2084ab71775c8e74a72d21c05 Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Thu, 28 Dec 2023 14:30:28 +0100 Subject: [PATCH] Bugfix: Bluetooth sensor data TLS is 5s instead of 50s. Introduced in 58d79380cf18074827d5783daeaca0b019eb7ba5 --- .../opentracks/sensors/BluetoothRemoteSensorManager.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/de/dennisguse/opentracks/sensors/BluetoothRemoteSensorManager.java b/src/main/java/de/dennisguse/opentracks/sensors/BluetoothRemoteSensorManager.java index 9a4bc0848..2ff1434c7 100644 --- a/src/main/java/de/dennisguse/opentracks/sensors/BluetoothRemoteSensorManager.java +++ b/src/main/java/de/dennisguse/opentracks/sensors/BluetoothRemoteSensorManager.java @@ -36,21 +36,14 @@ import de.dennisguse.opentracks.util.PermissionRequester; * Bluetooth LE sensor manager: manages connections to Bluetooth LE sensors. *

* Note: should only be instantiated once. - *

* TODO: listen for Bluetooth enabled/disabled events. - *

- * TODO: In case, a cycling (Cadence and Speed) sensor reports both values, testing is required. - * We establish two GATT separate GATT connections (as if two different sensors were used). - * However, it is not clear if this is allowed. - * Even if this works, it is not clear what happens if a user (while recording) changes one of the sensors in the settings as this will trigger a disconnect of one GATT. - * * @author Sandor Dornbush */ public class BluetoothRemoteSensorManager implements SensorConnector, SharedPreferences.OnSharedPreferenceChangeListener { private static final String TAG = BluetoothRemoteSensorManager.class.getSimpleName(); - public static final Duration MAX_SENSOR_DATE_SET_AGE = Duration.ofSeconds(50); //TODO + public static final Duration MAX_SENSOR_DATE_SET_AGE = Duration.ofSeconds(5); private final BluetoothAdapter bluetoothAdapter; private final Context context;