mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-17 13:11:27 +01:00
#103: using formatters
This commit is contained in:
1 parent
d0256fd37c
commit
6a2c623ea0
3 files changed
+10
-4
No files matched your search
@@ -537,7 +537,7 @@ private:
|
||||
return;
|
||||
if (!NMEA0183Msg.AddStrField((WindAngle >= 0 && WindAngle <= 180) ? 'R' : 'L'))
|
||||
return;
|
||||
if (!NMEA0183Msg.AddDoubleField(WindSpeed * 3600.0/1852.0))
|
||||
if (!NMEA0183Msg.AddDoubleField(formatKnots(WindSpeed)))
|
||||
return;
|
||||
if (!NMEA0183Msg.AddStrField("N"))
|
||||
return;
|
||||
@@ -545,7 +545,7 @@ private:
|
||||
return;
|
||||
if (!NMEA0183Msg.AddStrField("M"))
|
||||
return;
|
||||
if (!NMEA0183Msg.AddDoubleField(WindSpeed * 3600.0/1000.0))
|
||||
if (!NMEA0183Msg.AddDoubleField(formatKmh(WindSpeed)))
|
||||
return;
|
||||
if (!NMEA0183Msg.AddStrField("K"))
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user