don't reset in debug mode

This commit is contained in:
Jonas Bark
2025-10-26 20:54:53 +01:00
parent 4263375fb2
commit 2e95fb556a
2 changed files with 10 additions and 1 deletions

View File

@@ -65,7 +65,9 @@ class ZwiftRide extends ZwiftDevice {
'Your Zwift Click V2 no longer sends events. Connect it in the Zwift app once per day. Resetting the device now.',
),
);
sendCommand(Opcode.RESET, null);
if (!kDebugMode) {
sendCommand(Opcode.RESET, null);
}
}
switch (opcode) {

View File

@@ -230,6 +230,13 @@ class _DevicePageState extends State<DevicePage> with WidgetsBindingObserver {
},
child: Text('Troubleshooting'),
),
if (kDebugMode)
TextButton(
onPressed: () {
(connection.bluetoothDevices.first as ZwiftClickV2).test();
},
child: Text('Test'),
),
],
),
],