1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

#71: add BMP280 and env IV to cibuild

This commit is contained in:
andreas
2024-11-15 18:39:38 +01:00
parent 834bbcb72a
commit abe15281a1
4 changed files with 89 additions and 20 deletions

View File

@@ -39,8 +39,7 @@ class BMP280Config : public IICSensorBase{
}
virtual bool isActive(){return prAct||tmAct;}
virtual bool initDevice(GwApi *api,TwoWire *wire){
GwLog *logger=api->getLogger();
//Wire.begin(GWIIC_SDA,GWIIC_SCL);
GwLog *logger=api->getLogger();
device= new Adafruit_BMP280(wire);
if (! device->begin(addr)){
LOG_DEBUG(GwLog::ERROR,"unable to initialize %s at %d",prefix.c_str(),addr);