mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
adjust Headwind logic according to comment from https://github.com/jonasbark/swiftcontrol/issues/11#issuecomment-3634041684
This commit is contained in:
@@ -73,7 +73,7 @@ class WahooKickrHeadwind extends BluetoothDevice {
|
||||
|
||||
// Check if manual mode is enabled, if not enable it first
|
||||
if (_currentMode != HeadwindMode.manual) {
|
||||
final manualModeData = Uint8List.fromList([0x02, 0x04]);
|
||||
final manualModeData = Uint8List.fromList([0x04, 0x04]);
|
||||
await UniversalBle.write(
|
||||
device.deviceId,
|
||||
service,
|
||||
@@ -100,8 +100,8 @@ class WahooKickrHeadwind extends BluetoothDevice {
|
||||
final service = WahooKickrHeadwindConstants.SERVICE_UUID.toLowerCase();
|
||||
final characteristic = WahooKickrHeadwindConstants.CHARACTERISTIC_UUID.toLowerCase();
|
||||
|
||||
// Command format: [0x02, 0x02] for HR mode
|
||||
final data = Uint8List.fromList([0x02, 0x02]);
|
||||
// Command format: [0x04, 0x02] for HR mode
|
||||
final data = Uint8List.fromList([0x04, 0x02]);
|
||||
|
||||
await UniversalBle.write(
|
||||
device.deviceId,
|
||||
|
||||
Reference in New Issue
Block a user