Align unit name for temperature in OBPFormatter between <kelvinToC> <formatXdr:C>

This commit is contained in:
Ulrich Meine
2026-06-07 01:22:29 +02:00
parent abfe68f963
commit 89482016db
+2 -2
View File
@@ -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";