Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
Wrong API on BluetoothAdapter is getting called. Changed it to the
according API call getDefaultAdapter()
  • Loading branch information
Jakouf authored and qdot committed Dec 21, 2024
1 parent 821623f commit 912db05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Peripheral {
private CommandCallback commandCallback;

public Peripheral(Adapter adapter, String address) {
this.device = BluetoothAdapter.getAdapter().getRemoteDevice(address);
this.device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address);
this.adapter = adapter;
this.callback = new Callback();
}
Expand Down

0 comments on commit 912db05

Please sign in to comment.