1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Xiaomi: Fix barometer

Thanks to MrYoranimo for the fix.
This commit is contained in:
José Rebelo 2024-05-03 22:27:57 +01:00
parent 4c93647aaf
commit 7892afa304

View File

@ -302,7 +302,7 @@ public class XiaomiWeatherService extends AbstractXiaomiService {
"Unknown" // some string like "Moderate"
))
.setWarning(XiaomiProto.WeatherWarnings.newBuilder()) // TODO add warnings when they become available through spec
.setPressure(weatherSpec.pressure)
.setPressure(weatherSpec.pressure * 100f)
))
.build();