From ef1048ec0820e1a3bc2bcdcef07dde18e66949d3 Mon Sep 17 00:00:00 2001 From: Jonas Bark Date: Tue, 9 Dec 2025 21:56:45 +0100 Subject: [PATCH] adjust Headwind logic according to comment from https://github.com/jonasbark/swiftcontrol/issues/11#issuecomment-3634041684 --- lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart b/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart index a8b7c3f..37537fe 100644 --- a/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart +++ b/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart @@ -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,