This commit is contained in:
jomjol
2021-07-29 20:14:36 +02:00
parent fa3842b2b4
commit 1bcaf09855
11 changed files with 35 additions and 22 deletions

View File

@@ -216,6 +216,7 @@ void GpioHandler::init()
clear();
}
ESP_LOGI(TAG_SERVERGPIO, "read GPIO config and init GPIO");
if (!readConfig()) {
clear();
@@ -225,6 +226,7 @@ void GpioHandler::init()
return;
}
for(std::map<gpio_num_t, GpioPin*>::iterator it = gpioMap->begin(); it != gpioMap->end(); ++it) {
it->second->init();
}