Skip to content

Commit

Permalink
Merge pull request #208 from facetious/2mphy-supported
Browse files Browse the repository at this point in the history
fix(android): 2m phy selection is now only attempted if isLe2MPhySupported is true.
  • Loading branch information
farfromrefug authored Feb 19, 2021
2 parents d34f765 + 8124923 commit c94a8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bluetooth.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2560,7 +2560,7 @@ export class Bluetooth extends BluetoothCommon {
}

private select2MegPhy(args: { peripheralUUID: string }): Promise<void> {
if (getAndroidSDK() < OREO) {
if (getAndroidSDK() < OREO || !this.adapter.isLe2MPhySupported()) {
return Promise.resolve();
}

Expand Down

0 comments on commit c94a8d2

Please sign in to comment.