Skip to content

Commit

Permalink
fix glowtip check
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 10, 2024
1 parent f154861 commit 2b599a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Backend/Bluetooth/bluetooth_manager_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ Future<void> initFlutterBluePlus(InitFlutterBluePlusRef ref) async {
} else if (value.startsWith("GLOWTIP")) {
String substring = value.substring(value.indexOf(" ")).trim();
if (substring == 'TRUE') {
statefulDevice.hasGlowtip.value == GlowtipStatus.glowtip;
statefulDevice.hasGlowtip.value = GlowtipStatus.glowtip;
} else if (substring == 'FALSE') {
statefulDevice.hasGlowtip.value == GlowtipStatus.noGlowtip;
statefulDevice.hasGlowtip.value = GlowtipStatus.noGlowtip;
}
} else if (value.contains("BUSY")) {
//statefulDevice.deviceState.value = DeviceState.busy;
Expand Down

0 comments on commit 2b599a6

Please sign in to comment.