1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-23 00:33:09 +02:00

Fix caliper body fat value by not calculating if not all values are set (#710)

This commit is contained in:
Martin Boonk
2021-03-09 15:28:01 +01:00
committed by GitHub
parent fd7f6d8730
commit ad517866cf

View File

@@ -488,6 +488,10 @@ public class ScaleMeasurement implements Cloneable {
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
if (scaleUser.getGender().isMale()) {