mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user