Skip to content

Commit 8124923

Browse files
committed
fix(android): 2m phy selection is now only attempted if isLe2MPhySupported is true.
1 parent d34f765 commit 8124923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bluetooth.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2560,7 +2560,7 @@ export class Bluetooth extends BluetoothCommon {
25602560
}
25612561

25622562
private select2MegPhy(args: { peripheralUUID: string }): Promise<void> {
2563-
if (getAndroidSDK() < OREO) {
2563+
if (getAndroidSDK() < OREO || !this.adapter.isLe2MPhySupported()) {
25642564
return Promise.resolve();
25652565
}
25662566

0 commit comments

Comments
 (0)