mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-23 16:53:04 +02:00
Fix caliper body fat value by not calculating if not all values are set (#710)
This commit is contained in:
@@ -488,6 +488,10 @@ public class ScaleMeasurement implements Cloneable {
|
|||||||
|
|
||||||
float k0, k1, k2, ka;
|
float k0, k1, k2, ka;
|
||||||
|
|
||||||
|
if (caliper1 == 0.0f || caliper2 == 0.0f || caliper3 == 0.0f){
|
||||||
|
return 0.0f;
|
||||||
|
}
|
||||||
|
|
||||||
float s = (caliper1 + caliper2 + caliper3) * 10.0f; // cm to mm
|
float s = (caliper1 + caliper2 + caliper3) * 10.0f; // cm to mm
|
||||||
|
|
||||||
if (scaleUser.getGender().isMale()) {
|
if (scaleUser.getGender().isMale()) {
|
||||||
|
Reference in New Issue
Block a user