Skip to content

Commit 115b4a1

Browse files
committed
cleaned up.
1 parent b98c143 commit 115b4a1

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBroadcastScale.java

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class BluetoothBroadcastScale extends BluetoothCommunication {
5252

5353
public BluetoothBroadcastScale(Context context)
5454
{
55+
super(context);
5556
this.context = context;
5657
this.central = new BluetoothCentralManager(context, bluetoothCentralCallback, new Handler(Looper.getMainLooper()));
5758
}

android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothCommunication.java

-4
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ public BluetoothCommunication(Context context)
8080
this.central = new BluetoothCentralManager(context, bluetoothCentralCallback, new Handler(Looper.getMainLooper()));
8181
}
8282

83-
public BluetoothCommunication() {
84-
85-
}
86-
8783
protected boolean needReConnect() {
8884
if (callbackBtHandler == null) {
8985
return true;

android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static BluetoothCommunication createDeviceDriver(Context context, String
139139
if (deviceName.equals("Yoda1")){
140140
return new BluetoothYoda1Scale(context);
141141
}
142-
if (deviceName.equals("AAA002")){
142+
if (deviceName.equals("AAA002") || deviceName.equals("AAA007")){
143143
return new BluetoothBroadcastScale(context);
144144
}
145145
return null;

0 commit comments

Comments
 (0)