BLE: CSC remove workarounds as those are not necessary.

The implementation of OpenTracks for the CSC parsing was broken and fixed in 35de5b6b26

Fixes #1046.
This commit is contained in:
Dennis Guse
2021-12-19 22:44:37 +01:00
parent 52228d44a9
commit 6fe6cee475
2 changed files with 0 additions and 16 deletions
@@ -203,11 +203,6 @@ public abstract class BluetoothConnectionManager<DataType> {
return cadenceAndSpeed.getCadence();
}
//Workaround for Wahoo CADENCE: this sensor reports speed (instead of cadence)
if (cadenceAndSpeed.getDistanceSpeed() != null) {
return new SensorDataCycling.Cadence(cadenceAndSpeed.getDistanceSpeed());
}
return null;
}
}
@@ -234,11 +229,6 @@ public abstract class BluetoothConnectionManager<DataType> {
return cadenceAndSpeed.getDistanceSpeed();
}
// Workaround for Garmin Speed Sensor 2: provides cadence (instead of speed)
if (cadenceAndSpeed.getCadence() != null) {
return new SensorDataCycling.DistanceSpeed(cadenceAndSpeed.getSensorAddress(), cadenceAndSpeed.getSensorName(), (int) cadenceAndSpeed.getCadence().getCrankRevolutionsCount(), cadenceAndSpeed.getCadence().getCrankRevolutionsTime());
}
return null;
}
}