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

make SensorBase more generic

This commit is contained in:
andreas
2024-03-01 15:13:11 +01:00
parent 8a5bdd710e
commit b3d065abd1
10 changed files with 68 additions and 41 deletions

View File

@@ -21,7 +21,7 @@
#define PRFX2 "BME28012"
#define PRFX3 "BME28021"
#define PRFX4 "BME28022"
class BME280Config : public SensorBase{
class BME280Config : public IICSensorBase{
public:
bool prAct=true;
bool tmAct=true;
@@ -138,7 +138,7 @@ class BME280Config : public SensorBase{
};
void registerBME280(GwApi *api,SensorList &sensors){
void registerBME280(GwApi *api,IICSensorList &sensors){
#if defined(GWBME280) || defined(GWBME28011)
{
BME280Config *cfg=new BME280Config(api,PRFX1);
@@ -173,7 +173,7 @@ void registerBME280(GwApi *api,SensorList &sensors){
#endif
}
#else
void registerBME280(GwApi *api,SensorList &sensors){
void registerBME280(GwApi *api,IICSensorList &sensors){
}
#endif