Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_372' into 'master'
Browse files Browse the repository at this point in the history
fix: ADC button tied to GND ignored (GitHub PR)

Closes AEGHB-691

See merge request ae_group/esp-iot-solution!1027
  • Loading branch information
leeebo committed Jun 17, 2024
2 parents e2529ce + d2c3ce7 commit f080bb1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions components/button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

## v3.2.1 - 2024-6-17

### bugfix

- Fixed ignored ADC button tied to GND.

## v3.2.0 - 2023-11-13

Expand Down
2 changes: 1 addition & 1 deletion components/button/button_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ uint8_t button_adc_get_key_level(void *button_index)
}

if (vol <= g_button.ch[ch_index].btns[index].max &&
vol > g_button.ch[ch_index].btns[index].min) {
vol >= g_button.ch[ch_index].btns[index].min) {
return 1;
}
return 0;
Expand Down
2 changes: 1 addition & 1 deletion components/button/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.2.0"
version: "3.2.1"
description: GPIO and ADC button driver
url: https://github.com/espressif/esp-iot-solution/tree/master/components/button
repository: https://github.com/espressif/esp-iot-solution.git
Expand Down

0 comments on commit f080bb1

Please sign in to comment.