1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 02:25:50 +01:00

minor tweak - ensure we round wind speed so it's not to 12 decimal places

This commit is contained in:
Gordon Williams 2023-10-10 11:11:16 +01:00
parent 69fcec059d
commit 7f962912bb

View File

@ -1528,7 +1528,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
o.put("uv", Math.round(weatherSpec.uvIndex*10)/10);
o.put("code", weatherSpec.currentConditionCode);
o.put("txt", weatherSpec.currentCondition);
o.put("wind", weatherSpec.windSpeed);
o.put("wind", Math.round(weatherSpec.windSpeed*100)/100.0);
o.put("wdir", weatherSpec.windDirection);
o.put("loc", weatherSpec.location);
uartTxJSON("onSendWeather", o);