修复设备选择界面多设备选择bug
This commit is contained in:
1 parent
7729332f41
commit
5671b35dce
21 files changed
+111
-56
No files matched your search
@@ -16,7 +16,7 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
private CyclingPowerMeasurement cyclingPowerMeasurement;
|
||||
public CyclingPower(BlePeripheralInfo peripheralInfo, BleWinHwInterface bleWinHwInterface) : base(peripheralInfo, bleWinHwInterface, Ant.SensorType.Power)
|
||||
{
|
||||
|
||||
Priority = 2;
|
||||
cyclingPowerMeasurement = new CyclingPowerMeasurement(1920);
|
||||
base.Characteristics.Add(cyclingPowerMeasurement);
|
||||
bleWinHwInterface.CharacteristicReadEvent += CharacteristicReadMainCallback;
|
||||
|
||||
@@ -18,6 +18,7 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
private HeartRateMeasurement heartRateMeasurement;
|
||||
public HeartRate(BlePeripheralInfo peripheralInfo, BleWinHwInterface bleWinHwInterface) : base(peripheralInfo, bleWinHwInterface, Ant.SensorType.HeartRate)
|
||||
{
|
||||
Priority = 2;
|
||||
heartRateMeasurement = new HeartRateMeasurement();
|
||||
|
||||
base.Characteristics.Add(heartRateMeasurement);
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
public SpeedCadence(BlePeripheralInfo peripheralInfo, BleWinHwInterface bleWinHwInterface) : base(peripheralInfo, bleWinHwInterface, Ant.SensorType.SpeedCadence)
|
||||
{
|
||||
Debug.Log("创建速度踏频设备");
|
||||
Priority = 1;
|
||||
_cyclingSpeedCadenceMeasurement = new CyclingSpeedCadenceMeasurement(this._wheelCircumference);
|
||||
base.Characteristics.Add(_cyclingSpeedCadenceMeasurement);
|
||||
|
||||
|
||||
Reference in new issue
Block a user