oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.68k stars 292 forks source link

fat-free mass greater than weight #1000

Open FransM opened 11 months ago

FransM commented 11 months ago

Describe the bug I have a measurement where the fat-free mass is more than the weight.

To Reproduce I have no idea if this is reproducible, but let me explain what happens. I've put a child on the scale to weigh her. She had socks on but as I was only interested in the weight I did not bother. To my surprise a measurement was added with the same muscle, fat, bone mass, fat-free mass, visceral fat etc as the previous measurement (being a measurement from me). So she ended up with a weight of 14.95 kg and a fatfree mass of 65.17 kg

Expected behavior Obviously this is not correct. I expected either 0 for the values derived from the impedance or an error or invalid measurement

Additional context This was on a mi body composition scale 2

Debug log Sorry, cannot reproduce, still I feel some defensive programming would be desired.