mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 02:55:50 +01:00
minor tweak - ensure we round wind speed so it's not to 12 decimal places
This commit is contained in:
parent
69fcec059d
commit
7f962912bb
@ -1528,7 +1528,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
o.put("uv", Math.round(weatherSpec.uvIndex*10)/10);
|
o.put("uv", Math.round(weatherSpec.uvIndex*10)/10);
|
||||||
o.put("code", weatherSpec.currentConditionCode);
|
o.put("code", weatherSpec.currentConditionCode);
|
||||||
o.put("txt", weatherSpec.currentCondition);
|
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("wdir", weatherSpec.windDirection);
|
||||||
o.put("loc", weatherSpec.location);
|
o.put("loc", weatherSpec.location);
|
||||||
uartTxJSON("onSendWeather", o);
|
uartTxJSON("onSendWeather", o);
|
||||||
|
Loading…
Reference in New Issue
Block a user