#ifdef CONFIG_EXAMPLE_INTERNAL_PULLUP
//gpio_set_pull_mode(dht_gpio, GPIO_PULLUP_ONLY);
gpio_set_pull_mode(CONFIG_EXAMPLE_DATA_GPIO, GPIO_PULLUP_ONLY);
#endif
/home/nop/rtos/dht/examples/default/main/main.c:21:24: error: 'dht_gpio' undeclared (first use in this function)
21 | gpio_set_pull_mode(dht_gpio, GPIO_PULLUP_ONLY);
The issue
Which SDK are you using?
esp-idf
Which version of SDK are you using?
ESP-IDF v5.5.3-dirty
Which build target have you used?
Component causing the issue
dht
Anything in the logs that might be useful for us?
Additional information or context
https://github.com/esp-idf-lib/dht/blob/main/examples/default/main/main.c#L21
Confirmation