mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 15:33:05 +01:00
continue restructuring sensors, test env3
This commit is contained in:
@@ -105,7 +105,10 @@ void initIicTask(GwApi *api){
|
||||
ConfiguredSensors sensorList=api->taskInterfaces()->get<ConfiguredSensors>(res);
|
||||
for (auto &&it: sensorList.sensors){
|
||||
if (it->busType != SensorBase::IIC) continue;
|
||||
if (it->preinit(api)) addTask=true;
|
||||
if (it->preinit(api)) {
|
||||
addTask=true;
|
||||
api->addCapability(it->prefix,"true");
|
||||
}
|
||||
}
|
||||
if (addTask){
|
||||
api->addUserTask(runIicTask,"iicTask",4000);
|
||||
|
||||
Reference in New Issue
Block a user