make BMP280 working with groove config
This commit is contained in:
parent
7a6eba4b86
commit
70fb1b3633
|
@ -140,6 +140,7 @@ class BME280Config : public IICSensorBase{
|
||||||
busId = 2;
|
busId = 2;
|
||||||
addr = 0x77;
|
addr = 0x77;
|
||||||
CFG280(BME28022);
|
CFG280(BME28022);
|
||||||
|
ok=true;
|
||||||
}
|
}
|
||||||
intv *= 1000;
|
intv *= 1000;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#ifdef _GWIIC
|
#ifdef _GWIIC
|
||||||
#if defined(GWBMP280) || defined(GWBMP28011) || defined(GWBMP28012)|| defined(GWBMP28021)|| defined(GWBMP28022)
|
#if defined(GWBMP280) || defined(GWBMP28011) || defined(GWBMP28012)|| defined(GWBMP28021)|| defined(GWBMP28022)
|
||||||
#define _GWBMP280
|
#define _GWBMP280
|
||||||
#else
|
|
||||||
#undef _GWBMP280
|
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#undef _GWBMP280
|
#undef _GWBMP280
|
||||||
|
@ -126,6 +124,7 @@ class BMP280Config : public IICSensorBase{
|
||||||
busId = 2;
|
busId = 2;
|
||||||
addr = 0x77;
|
addr = 0x77;
|
||||||
CFGBMP280(BMP28022);
|
CFGBMP280(BMP28022);
|
||||||
|
ok=true;
|
||||||
}
|
}
|
||||||
intv *= 1000;
|
intv *= 1000;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue