From 74b9c5cfdd718b991518ca0f24404379cfad0c10 Mon Sep 17 00:00:00 2001 From: Peter Huewe Date: Fri, 8 Jan 2021 10:59:50 +0100 Subject: [PATCH] Replace %i format specifier with %d (#682) `%i` is not a valid format specifier in Java and if this code is executed creates an exception. Use `%d` instead. Signed-off-by: Peter Huewe --- .../core/bluetooth/BluetoothStandardWeightProfile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java index 94f67241..1345c89b 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java @@ -184,7 +184,7 @@ public class BluetoothStandardWeightProfile extends BluetoothCommunication { if(userIDPresent) { int userID = parser.getIntValue(BluetoothBytesParser.FORMAT_UINT8); - Timber.d(String.format("User id: %i", userID)); + Timber.d(String.format("User id: %d", userID)); } if(bmiAndHeightPresent) { @@ -228,7 +228,7 @@ public class BluetoothStandardWeightProfile extends BluetoothCommunication { // Read userID if present if (userIDPresent) { int userID = parser.getIntValue(BluetoothBytesParser.FORMAT_UINT8); - Timber.d(String.format("user id: %i", userID)); + Timber.d(String.format("user id: %d", userID)); } // Read bmr if present