mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 06:23:07 +01:00
make BMP280 working with groove config
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user