1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00

Xiaomi: Fix temperature sample range

This commit is contained in:
José Rebelo 2024-03-19 21:00:21 +00:00
parent d3c16a1d40
commit c79bb53f74

View File

@ -95,7 +95,7 @@ public class XiaomiTemperatureSampleProvider implements TimeSampleProvider<Tempe
// first 2 bytes are body temperature
// last 2 bytes are skin temperature
// since the body temperature seems to always be 0, we only display skin temperature
this.temperature = (sample.getValue() & 0xffff);
this.temperature = (sample.getValue() & 0xffff) / 100f;
}
@Override