Added support for BMP280
This commit is contained in:
parent
2756d115ab
commit
700781ae23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue