mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-24 01:03:20 +02:00
BluetoothFactory: treat BF950 like SBF77;
This commit is contained in:
@@ -125,11 +125,11 @@ public class BluetoothFactory {
|
||||
if (deviceName.equals("BF105")) {
|
||||
return new BluetoothBeurerBF105(context);
|
||||
}
|
||||
if (deviceName.equals("BF600") || deviceName.equals("BF850") || deviceName.equals("BF950")) {
|
||||
if (deviceName.equals("BF600") || deviceName.equals("BF850")) {
|
||||
return new BluetoothBeurerBF600(context, deviceName);
|
||||
}
|
||||
if (deviceName.equals("SBF77")) {
|
||||
return new BluetoothSwpSBF77(context);
|
||||
if (deviceName.equals("SBF77") || deviceName.equals("BF950")) {
|
||||
return new BluetoothSwpSBF77(context, deviceName);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@@ -48,16 +48,18 @@ public class BluetoothSwpSBF77 extends BluetoothStandardWeightProfile {
|
||||
ScaleMeasurement scaleMeasurement;
|
||||
private Vector<ScaleUser> scaleUserList;
|
||||
static final int SBF77_MAX_USERS = 8;
|
||||
String deviceName;
|
||||
|
||||
public BluetoothSwpSBF77(Context context) {
|
||||
public BluetoothSwpSBF77(Context context, String name) {
|
||||
super(context);
|
||||
scaleMeasurement = new ScaleMeasurement();
|
||||
scaleUserList = new Vector<ScaleUser>();
|
||||
deviceName = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String driverName() {
|
||||
return "SBF77";
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user