Skip to content

Commit dfa3f8c

Browse files
committed
Merge branch 'fix/gpio-button-conf-uninitialized-pull-members' into 'master'
fix(button): Added initialization for gpio_config Closes AEGHB-1020 See merge request ae_group/esp-iot-solution!1269
2 parents d008414 + e3988fd commit dfa3f8c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

components/button/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ChangeLog
22

3+
## v4.1.3 - 2025-04-11
4+
5+
### Fix:
6+
7+
* Added initialization for gpio_config. [!485](https://github.com/espressif/esp-iot-solution/pull/485)
8+
39
## v4.1.2 - 2025-03-24
410

511
### Fix:

components/button/button_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ esp_err_t iot_button_new_gpio_device(const button_config_t *button_config, const
8888
gpio_btn->active_level = gpio_cfg->active_level;
8989
gpio_btn->enable_power_save = gpio_cfg->enable_power_save;
9090

91-
gpio_config_t gpio_conf;
91+
gpio_config_t gpio_conf = {0};
9292
gpio_conf.intr_type = GPIO_INTR_DISABLE;
9393
gpio_conf.mode = GPIO_MODE_INPUT;
9494
gpio_conf.pin_bit_mask = (1ULL << gpio_cfg->gpio_num);

components/button/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "4.1.2"
1+
version: "4.1.3"
22
description: GPIO and ADC and Matrix button driver
33
url: https://github.com/espressif/esp-iot-solution/tree/master/components/button
44
repository: https://github.com/espressif/esp-iot-solution.git

0 commit comments

Comments
 (0)