Added support for BMP280

This commit is contained in:
thooge 2024-10-16 13:49:30 +02:00 committed by GitHub
parent 2756d115ab
commit 700781ae23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions
lib/obp60task

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