Skip to content

Commit

Permalink
fix: ADC button tied to GND ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
demianzenkov committed Jun 16, 2024
1 parent e2529ce commit e68ee8b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit e68ee8b

Please sign in to comment.