1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

Merge pull request #100 from thooge/master

Added support for BMP280 on page for BME280
This commit is contained in:
Norbert Walter
2024-10-17 15:54:41 +02:00
committed by GitHub

View File

@@ -49,7 +49,7 @@ class PageBME280 : public Page
value1 = 23.0 + float(random(0, 10)) / 10.0;
}
// Display data when sensor activated
if(String(useenvsensor) == "BME280"){
if((String(useenvsensor) == "BME280") or (String(useenvsensor) == "BMP280")){
svalue1 = String(value1, 1); // Formatted value as string including unit conversion and switching decimal places
}
else{
@@ -85,7 +85,7 @@ class PageBME280 : public Page
value3 = 1006 + float(random(0, 5));
}
// Display data when sensor activated
if(String(useenvsensor) == "BME280"){
if((String(useenvsensor) == "BME280") or (String(useenvsensor) == "BMP280")){
svalue3 = String(value3, 0); // Formatted value as string including unit conversion and switching decimal places
}
else{
@@ -236,4 +236,4 @@ PageDescription registerPageBME280(
true // Show display header on/off
);
#endif
#endif