mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
correct formatWind
This commit is contained in:
@@ -1224,7 +1224,7 @@ let valueFormatters = {
|
|||||||
f: function (v) {
|
f: function (v) {
|
||||||
let x = parseFloat(v);
|
let x = parseFloat(v);
|
||||||
x = x * 180.0 / Math.PI;
|
x = x * 180.0 / Math.PI;
|
||||||
if (x > 180) x = 180 - x;
|
if (x > 180) x = -1 * (360 - x);
|
||||||
return x.toFixed(0);
|
return x.toFixed(0);
|
||||||
},
|
},
|
||||||
u: '°'
|
u: '°'
|
||||||
|
|||||||
Reference in New Issue
Block a user