correct formatWind

This commit is contained in:
wellenvogel 2022-01-06 13:12:06 +01:00
parent d1f0313e48
commit 34760d2fbe
1 changed files with 1 additions and 1 deletions

View File

@ -1224,7 +1224,7 @@ let valueFormatters = {
f: function (v) {
let x = parseFloat(v);
x = x * 180.0 / Math.PI;
if (x > 180) x = 180 - x;
if (x > 180) x = -1 * (360 - x);
return x.toFixed(0);
},
u: '°'