mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-14 09:00:04 +02:00
Xiaomi: Fix temperature sample range
This commit is contained in:
parent
d3c16a1d40
commit
c79bb53f74
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user