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;