mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-17 22:11:35 +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) {
|
if(userIDPresent) {
|
||||||
int userID = parser.getIntValue(BluetoothBytesParser.FORMAT_UINT8);
|
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) {
|
if(bmiAndHeightPresent) {
|
||||||
@@ -228,7 +228,7 @@ public class BluetoothStandardWeightProfile extends BluetoothCommunication {
|
|||||||
// Read userID if present
|
// Read userID if present
|
||||||
if (userIDPresent) {
|
if (userIDPresent) {
|
||||||
int userID = parser.getIntValue(BluetoothBytesParser.FORMAT_UINT8);
|
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
|
// Read bmr if present
|
||||||
|
Reference in New Issue
Block a user