1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-16 21:54:05 +02:00

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 <peterhuewe@gmx.de>
This commit is contained in:
Peter Huewe
2021-01-08 10:59:50 +01:00
committed by GitHub
parent 2228a43684
commit 74b9c5cfdd

View File

@@ -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