1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 15:33:05 +01:00

intermediate: sensor config initializer list

This commit is contained in:
andreas
2024-11-17 14:41:28 +01:00
parent 1ab70aca8b
commit d904d15ece
3 changed files with 116 additions and 52 deletions

View File

@@ -60,6 +60,7 @@ static void addGroveItems(std::vector<IICSensorBase::Creator> &creators,GwApi *a
{
if (! creator) continue;
auto *scfg = creator(api, prfx);
if (scfg == nullptr) continue;
scfg->readConfig(api->getConfig());
if (scfg->ok)
{