Skip to content

Commit

Permalink
cleaned up.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliexdev committed May 20, 2024
1 parent b98c143 commit 115b4a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class BluetoothBroadcastScale extends BluetoothCommunication {

public BluetoothBroadcastScale(Context context)
{
super(context);
this.context = context;
this.central = new BluetoothCentralManager(context, bluetoothCentralCallback, new Handler(Looper.getMainLooper()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ public BluetoothCommunication(Context context)
this.central = new BluetoothCentralManager(context, bluetoothCentralCallback, new Handler(Looper.getMainLooper()));
}

public BluetoothCommunication() {

}

protected boolean needReConnect() {
if (callbackBtHandler == null) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static BluetoothCommunication createDeviceDriver(Context context, String
if (deviceName.equals("Yoda1")){
return new BluetoothYoda1Scale(context);
}
if (deviceName.equals("AAA002")){
if (deviceName.equals("AAA002") || deviceName.equals("AAA007")){
return new BluetoothBroadcastScale(context);
}
return null;
Expand Down

0 comments on commit 115b4a1

Please sign in to comment.