mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
minor tweak - ensure we round wind speed so it's not to 12 decimal places
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user