Skip to content

Commit

Permalink
Keep asking for gear ver until glowtip status is known
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 10, 2024
1 parent 2700e4b commit 5239c14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Backend/Bluetooth/bluetooth_manager_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ Future<void> initFlutterBluePlus(InitFlutterBluePlusRef ref) async {
device.commandQueue.addCommand(BluetoothMessage(message: "PING", device: device, priority: Priority.low, type: CommandType.system));
device.commandQueue.addCommand(BluetoothMessage(message: "BATT", device: device, priority: Priority.low, type: CommandType.system));
element.readRssi();
if (device.baseDeviceDefinition.deviceType != DeviceType.ears && device.hasGlowtip.value == GlowtipStatus.unknown) {
device.commandQueue.addCommand(BluetoothMessage(message: "VER", device: device, priority: Priority.low, type: CommandType.system, responseMSG: "VER "));
}
}
}
}, cancelOnError: true);
Expand Down

0 comments on commit 5239c14

Please sign in to comment.