Fix headwind first button press issue by adding delay between mode and speed commands

Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-10 07:44:37 +00:00
parent 76c59537c1
commit f7a0b8dca8

View File

@@ -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]