mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-10-30 02:12:41 +01:00
Align unit name for temperature in OBPFormatter between <kelvinToC> <formatXdr:C>
This commit is contained in:
1 parent
abfe68f963
commit
89482016db
1 file changed
+2
-2
@@ -519,11 +519,11 @@ FormattedData formatValue(GwApi::BoatValue *value, CommonData &commondata, bool
|
|||||||
}
|
}
|
||||||
if (String(tempFormat) == "C") {
|
if (String(tempFormat) == "C") {
|
||||||
temp = temp - 273.15;
|
temp = temp - 273.15;
|
||||||
result.unit = "C";
|
result.unit = "Deg C";
|
||||||
}
|
}
|
||||||
else if (String(tempFormat) == "F") {
|
else if (String(tempFormat) == "F") {
|
||||||
temp = (temp - 273.15) * 9 / 5 + 32;
|
temp = (temp - 273.15) * 9 / 5 + 32;
|
||||||
result.unit = "F";
|
result.unit = "Deg F";
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
result.unit = "K";
|
result.unit = "K";
|
||||||
|
|||||||
Reference in new issue
Block a user