implement pull-up and -down

This commit is contained in:
technyon
2023-06-04 13:17:42 +02:00
parent 56bd07629f
commit f839d42c83
3 changed files with 13 additions and 5 deletions

View File

@@ -224,7 +224,8 @@ void Network::initialize()
{
switch (pinEntry.role)
{
case PinRole::GeneralInput:
case PinRole::GeneralInputPullDown:
case PinRole::GeneralInputPullUp:
if(rebGpio)
{
buildMqttPath(gpioPath, {mqtt_topic_gpio_prefix, (mqtt_topic_gpio_pin + std::to_string(pinEntry.pin)).c_str(), mqtt_topic_gpio_role});