1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-02-11 07:03:07 +01:00

allow to switch PGN 130311 for sensors on/off, simplify config.json for i2csensors

This commit is contained in:
wellenvogel
2025-09-29 17:05:48 +02:00
parent 9831f8da85
commit fddc3c742b
6 changed files with 118 additions and 235 deletions

View File

@@ -29,6 +29,7 @@ class BMP280Config : public IICSensorBase{
public:
bool prAct=true;
bool tmAct=true;
bool sEnv=true;
tN2kTempSource tmSrc=tN2kTempSource::N2kts_InsideTemperature;
tN2kPressureSource prSrc=tN2kPressureSource::N2kps_Atmospheric;
tN2kHumiditySource huSrc=tN2kHumiditySource::N2khs_Undef;
@@ -150,6 +151,7 @@ SensorBase::Creator registerBMP280(GwApi *api){
CFG_SGET(s, prNam, prefix); \
CFG_SGET(s, tmOff, prefix); \
CFG_SGET(s, prOff, prefix); \
CFG_SGET(s, sEnv,prefix); \
s->busId = bus; \
s->addr = baddr; \
s->ok = true; \