Skip to content

Commit

Permalink
respond to shutdown command
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 30, 2024
1 parent 3f58af6 commit 11b3b20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Backend/Bluetooth/bluetooth_manager_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ Future<void> initFlutterBluePlus(InitFlutterBluePlusRef ref) async {
statefulDevice.batteryLow.value = true;
} else if (value.contains("ERR")) {
statefulDevice.gearReturnedError.value = true;
} else if (value.contains("SHUTDOWN BEGIN")) {
statefulDevice.deviceConnectionState.value = ConnectivityState.disconnected;
} else if (value.contains("HWVER")) {
// Hardware Version
statefulDevice.hwVersion.value = value.substring(value.indexOf(" "));
Expand Down

0 comments on commit 11b3b20

Please sign in to comment.