Skip to content

Commit 9c1b377

Browse files
authored
Fix unnecessary muscle percentage calculation (#1327)
Removed muscle percentage calculation from measurement transformation, since the acquired value from the raw measurement is already a percentage and not an absolute value.
1 parent 253a0c0 commit 9c1b377

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

android_app/app/src/main/java/com/health/openscale/core/bluetooth/scales/StandardWeightProfileHandler.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ open class StandardWeightProfileHandler : ScaleDeviceHandler() {
179179

180180
val w = m.weight.takeIf { it > 0f } ?: 1f
181181

182-
m.muscle = (m.muscle / w) * 100f
183182
m.water = (m.water / w) * 100f
184183

185184
logD("transformed values before publish: weight=${m.weight}kg, lbm=${m.lbm}kg, bone=${m.bone}kg, " +

0 commit comments

Comments
 (0)