mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-18 08:13:07 +01:00
Merge pull request #169 from Scorgan01/Fix_obpFormatter
Fix temperature conversion to Fahrenheit
This commit is contained in:
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user