mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-16 13:44:26 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user