Merge pull request #169 from Scorgan01/Fix_obpFormatter

Fix temperature conversion to Fahrenheit
This commit is contained in:
Norbert Walter 2025-05-12 10:03:47 +08:00 committed by GitHub
commit 1862bdc6ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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