From f2377f977111eed798ac2b8b22ff5442504095e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=A3=D1=81?= Date: Thu, 9 Jul 2026 23:50:37 +0500 Subject: [PATCH] bugfix: fix undefined variable in example --- examples/default/main/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/default/main/main.c b/examples/default/main/main.c index 585425e..7930180 100644 --- a/examples/default/main/main.c +++ b/examples/default/main/main.c @@ -18,7 +18,7 @@ void dht_test(void *pvParameters) float temperature, humidity; #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 while (1) @@ -38,4 +38,3 @@ void app_main() { xTaskCreate(dht_test, "dht_test", configMINIMAL_STACK_SIZE * 3, NULL, 5, NULL); } -