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

@@ -4,7 +4,7 @@
#define PRFX2 "QMP698812"
#define PRFX3 "QMP698821"
#define PRFX4 "QMP698822"
class QMP6988Config : public SensorBase{
class QMP6988Config : public IICSensorBase{
public:
String prNam="Pressure";
bool prAct=true;
@@ -76,7 +76,7 @@ class QMP6988Config : public SensorBase{
}
};
void registerQMP6988(GwApi *api,SensorList &sensors){
void registerQMP6988(GwApi *api,IICSensorList &sensors){
GwLog *logger=api->getLogger();
#if defined(GWQMP6988) || defined(GWQMP698811)
{
@@ -113,5 +113,5 @@ void registerQMP6988(GwApi *api,SensorList &sensors){
}
#else
void registerQMP6988(GwApi *api,SensorList &sensors){}
void registerQMP6988(GwApi *api,IICSensorList &sensors){}
#endif