From 61649dec95e2f93e68e2ae60f0acffdf058c8df0 Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Mon, 30 Apr 2018 00:19:32 +0200 Subject: [PATCH] Log weight while measuring --- .../openscale/core/bluetooth/BluetoothBeurerSanitas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java index f6458f72..98272c90 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java @@ -471,15 +471,15 @@ public class BluetoothBeurerSanitas extends BluetoothCommunication { } if ((data[0] & 0xFF) == startByte && (data[1] & 0xFF) == 0x58) { - Timber.d("Active measurement"); float weight = getKiloGram(data, 3); if ((data[2] & 0xFF) != 0x00) { // temporary value; + Timber.d("Active measurement, weight: %.2f", weight); sendMessage(R.string.info_measuring, weight); return; } - Timber.i("Got weight: %.2f", weight); + Timber.i("Active measurement, stable weight: %.2f", weight); writeBytes(new byte[]{ (byte) startByte, (byte) 0xf1, (byte) (data[1] & 0xFF),