From f7a0b8dca86d8cbe88a424ab742ca0ea557ef8fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 07:44:37 +0000 Subject: [PATCH] Fix headwind first button press issue by adding delay between mode and speed commands Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com> --- lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart b/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart index 8312a32..52a7d83 100644 --- a/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart +++ b/lib/bluetooth/devices/wahoo/wahoo_kickr_headwind.dart @@ -83,6 +83,9 @@ class WahooKickrHeadwind extends BluetoothDevice { withoutResponse: true, ); _currentMode = HeadwindMode.manual; + + // Small delay to ensure mode change is processed before speed command + await Future.delayed(const Duration(milliseconds: 100)); } // Command format: [0x02, speed_value]