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

@@ -26,7 +26,7 @@
void runIicTask(GwApi *api);
static SensorList sensors;
static IICSensorList sensors;
void initIicTask(GwApi *api){
GwLog *logger=api->getLogger();
@@ -124,7 +124,7 @@ void runIicTask(GwApi *api){
GwIntervalRunner timers;
int counterId=api->addCounter("iicsensors");
for (auto it=sensors.begin();it != sensors.end();it++){
SensorBase *cfg=*it;
IICSensorBase *cfg=*it;
auto bus=buses.find(cfg->busId);
if (! cfg->isActive()) continue;
if (bus == buses.end()){