1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 15:03:07 +01:00

Fix air pressure handling

This commit is contained in:
2024-12-17 19:40:41 +01:00
parent 4ad82299fc
commit 6828d1c67c
2 changed files with 13 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ class PageBME280 : public Page
}
// Display data when sensor activated
if((String(useenvsensor) == "BME280") or (String(useenvsensor) == "BMP280")){
svalue3 = String(value3, 0); // Formatted value as string including unit conversion and switching decimal places
svalue3 = String(value3 / 100, 1); // Formatted value as string including unit conversion and switching decimal places
}
else{
svalue3 = "---";
@@ -190,7 +190,7 @@ class PageBME280 : public Page
// Switch font if format for any values
getdisplay().setFont(&DSEG7Classic_BoldItalic30pt7b);
getdisplay().setCursor(180, 270);
getdisplay().setCursor(140, 270);
// Show bus data
getdisplay().print(svalue3); // Real value as formated string