Fix temperature conversion to Fahrenheit

This commit is contained in:
Ulrich Meine 2025-05-10 02:16:10 +02:00
parent 309d55cdb4
commit 13d6091ae8
1 changed files with 1 additions and 1 deletions
lib/obp60task

View File

@ -442,7 +442,7 @@ FormatedData formatValue(GwApi::BoatValue *value, CommonData &commondata){
result.unit = "C";
}
else if(String(tempFormat) == "F"){
temp = temp - 459.67;
temp = (temp - 273.15) * 9 / 5 + 32;
result.unit = "F";
}
else{