1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23: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

@@ -5,7 +5,7 @@
#define PRFX2 "SHT3X12"
#define PRFX3 "SHT3X21"
#define PRFX4 "SHT3X22"
class SHT3XConfig : public SensorBase{
class SHT3XConfig : public IICSensorBase{
public:
String tmNam;
String huNam;
@@ -104,7 +104,7 @@ class SHT3XConfig : public SensorBase{
intv*=1000;
}
};
void registerSHT3X(GwApi *api,SensorList &sensors){
void registerSHT3X(GwApi *api,IICSensorList &sensors){
GwLog *logger=api->getLogger();
#if defined(GWSHT3X) || defined (GWSHT3X11)
{
@@ -140,7 +140,7 @@ void registerSHT3X(GwApi *api,SensorList &sensors){
#endif
}
#else
void registerSHT3X(GwApi *api,SensorList &sensors){
void registerSHT3X(GwApi *api,IICSensorList &sensors){
}