mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-18 22:41:44 +02:00
Fix comment and some whitespace
This commit is contained in:
@@ -35,7 +35,6 @@ public class BluetoothSenssun extends BluetoothCommunication {
|
||||
private final UUID WEIGHT_MEASUREMENT_CHARACTERISTIC = BluetoothGattUuid.fromShortCode(0xfff1); // read, notify
|
||||
private final UUID CMD_MEASUREMENT_CHARACTERISTIC = BluetoothGattUuid.fromShortCode(0xfff2); // write only
|
||||
|
||||
|
||||
private boolean scaleGotUserData;
|
||||
long firstFixWeight = -1 ;
|
||||
private byte WeightFatMus = 0;
|
||||
@@ -52,7 +51,7 @@ public class BluetoothSenssun extends BluetoothCommunication {
|
||||
|
||||
@Override
|
||||
protected boolean doScanWhileConnecting() {
|
||||
// Medisana seems to have problem connecting if scan is running (see #278 and #353)
|
||||
// Senssun seems to have problem connecting if scan is running (see ##309)
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -119,7 +118,6 @@ public class BluetoothSenssun extends BluetoothCommunication {
|
||||
if (isBitSet(WeightFatMus, 2) && firstFixWeight > 0) {
|
||||
if (((System.currentTimeMillis() - firstFixWeight) > 2500 && WeightFatMus == (1 << 2)) //wait 1.5 seconds for Data
|
||||
|| WeightFatMus == 0x07) { // got all Data to save
|
||||
|
||||
addScaleData(measurement);
|
||||
WeightFatMus |= 1 << 3;
|
||||
}
|
||||
|
Reference in New Issue
Block a user