mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-09-11 19:55:14 +02:00
Align unit name for temperature in OBPFormatter between <kelvinToC> <formatXdr:C>
This commit is contained in:
@@ -519,11 +519,11 @@ FormattedData formatValue(GwApi::BoatValue *value, CommonData &commondata, bool
|
||||
}
|
||||
if (String(tempFormat) == "C") {
|
||||
temp = temp - 273.15;
|
||||
result.unit = "C";
|
||||
result.unit = "Deg C";
|
||||
}
|
||||
else if (String(tempFormat) == "F") {
|
||||
temp = (temp - 273.15) * 9 / 5 + 32;
|
||||
result.unit = "F";
|
||||
result.unit = "Deg F";
|
||||
}
|
||||
else{
|
||||
result.unit = "K";
|
||||
|
||||
Reference in New Issue
Block a user