Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Integrate connection handler with blueberry use case
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Jul 29, 2024
1 parent 05caa21 commit 4dac62e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class BlueberryRingUseCase extends ReactiveUseCase {
}

Future<void> connectToBlueberryRing() async {
await selectedBlueberryRing.value!.device.connect();
await _bluetoothUseCase.connectionHandler(selectedBlueberryRing.value!.device);
}

Future<BluetoothService> getBlueberryRingBluetoothService() async {
Expand All @@ -126,7 +126,7 @@ class BlueberryRingUseCase extends ReactiveUseCase {
'checkEstablishment:isBlueberryRingConnected $isBlueberryRingConnected');

if (!isBlueberryRingConnected) {
await selectedBlueberryRing.value?.device.connect();
await _bluetoothUseCase.connectionHandler(selectedBlueberryRing.value!.device);
isBlueberryRingConnected =
selectedBlueberryRing.value?.device.isConnected ?? false;
if (!isBlueberryRingConnected) {
Expand Down

0 comments on commit 4dac62e

Please sign in to comment.