Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ADC button tied to GND ignored (AEGHB-691) #372

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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