diff --git a/src/common/signalk/SKNMEAParser.cpp b/src/common/signalk/SKNMEAParser.cpp index 6cea5c23..500ea81b 100644 --- a/src/common/signalk/SKNMEAParser.cpp +++ b/src/common/signalk/SKNMEAParser.cpp @@ -133,10 +133,8 @@ const SKUpdate& SKNMEAParser::parseMWV(const SKSourceInput& input, NMEASentenceR // Wind sensors return a number between 0 and 360 but we want an // angle in radian with negative values when wind coming from port - if (windAngle > 180) { - windAngle = windAngle - 360; - } windAngle = SKDegToRad(windAngle); + SKNormalizeAngle(windAngle); SKUpdateStatic<2>* wmv = new SKUpdateStatic<2>(); wmv->setTimestamp(time);