1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-19 06:51:57 +02:00

Fix comment and some whitespace

This commit is contained in:
Erik Johansson
2018-11-27 20:13:55 +01:00
parent 65bc1f02d9
commit 34baeb2296

View File

@@ -35,7 +35,6 @@ public class BluetoothSenssun extends BluetoothCommunication {
private final UUID WEIGHT_MEASUREMENT_CHARACTERISTIC = BluetoothGattUuid.fromShortCode(0xfff1); // read, notify private final UUID WEIGHT_MEASUREMENT_CHARACTERISTIC = BluetoothGattUuid.fromShortCode(0xfff1); // read, notify
private final UUID CMD_MEASUREMENT_CHARACTERISTIC = BluetoothGattUuid.fromShortCode(0xfff2); // write only private final UUID CMD_MEASUREMENT_CHARACTERISTIC = BluetoothGattUuid.fromShortCode(0xfff2); // write only
private boolean scaleGotUserData; private boolean scaleGotUserData;
long firstFixWeight = -1 ; long firstFixWeight = -1 ;
private byte WeightFatMus = 0; private byte WeightFatMus = 0;
@@ -52,7 +51,7 @@ public class BluetoothSenssun extends BluetoothCommunication {
@Override @Override
protected boolean doScanWhileConnecting() { 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; return false;
} }
@@ -119,7 +118,6 @@ public class BluetoothSenssun extends BluetoothCommunication {
if (isBitSet(WeightFatMus, 2) && firstFixWeight > 0) { if (isBitSet(WeightFatMus, 2) && firstFixWeight > 0) {
if (((System.currentTimeMillis() - firstFixWeight) > 2500 && WeightFatMus == (1 << 2)) //wait 1.5 seconds for Data if (((System.currentTimeMillis() - firstFixWeight) > 2500 && WeightFatMus == (1 << 2)) //wait 1.5 seconds for Data
|| WeightFatMus == 0x07) { // got all Data to save || WeightFatMus == 0x07) { // got all Data to save
addScaleData(measurement); addScaleData(measurement);
WeightFatMus |= 1 << 3; WeightFatMus |= 1 << 3;
} }