We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d008414 commit d42c42aCopy full SHA for d42c42a
components/button/button_gpio.c
@@ -88,7 +88,7 @@ esp_err_t iot_button_new_gpio_device(const button_config_t *button_config, const
88
gpio_btn->active_level = gpio_cfg->active_level;
89
gpio_btn->enable_power_save = gpio_cfg->enable_power_save;
90
91
- gpio_config_t gpio_conf;
+ gpio_config_t gpio_conf = {0};
92
gpio_conf.intr_type = GPIO_INTR_DISABLE;
93
gpio_conf.mode = GPIO_MODE_INPUT;
94
gpio_conf.pin_bit_mask = (1ULL << gpio_cfg->gpio_num);
0 commit comments