Skip to content

Commit c94a8d2

Browse files
authored
Merge pull request #208 from facetious/2mphy-supported
fix(android): 2m phy selection is now only attempted if isLe2MPhySupported is true.
2 parents d34f765 + 8124923 commit c94a8d2

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)