diff --git a/lib/iictask/GwBME280.cpp b/lib/iictask/GwBME280.cpp index cc24113..6eb4847 100644 --- a/lib/iictask/GwBME280.cpp +++ b/lib/iictask/GwBME280.cpp @@ -140,6 +140,7 @@ class BME280Config : public IICSensorBase{ busId = 2; addr = 0x77; CFG280(BME28022); + ok=true; } intv *= 1000; } diff --git a/lib/iictask/GwBMP280.cpp b/lib/iictask/GwBMP280.cpp index a9efe48..c1b1729 100644 --- a/lib/iictask/GwBMP280.cpp +++ b/lib/iictask/GwBMP280.cpp @@ -2,8 +2,6 @@ #ifdef _GWIIC #if defined(GWBMP280) || defined(GWBMP28011) || defined(GWBMP28012)|| defined(GWBMP28021)|| defined(GWBMP28022) #define _GWBMP280 - #else - #undef _GWBMP280 #endif #else #undef _GWBMP280 @@ -126,6 +124,7 @@ class BMP280Config : public IICSensorBase{ busId = 2; addr = 0x77; CFGBMP280(BMP28022); + ok=true; } intv *= 1000; }