Skip to content

Commit 0878601

Browse files
Update connect method of BluetoothManager class with adding a return undefined for cases where the device is device.connected is false.
1 parent f32de02 commit 0878601

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/bluetooth/BluetoothManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class BluetoothManager implements IBluetoothManager {
4343
});
4444
return device;
4545
}
46+
return undefined;
4647
} catch (error) {
4748
console.error('Connection failed:', error);
4849
throw error;

0 commit comments

Comments
 (0)