Thanks to visit codestin.com Credit goes to github.com
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 b83a1d7 commit c5a929eCopy full SHA for c5a929e
shared-module/keypad/__init__.c
@@ -140,7 +140,7 @@ void keypad_never_reset(keypad_scanner_obj_t *self) {
140
void common_hal_keypad_generic_reset(void *self_in) {
141
keypad_scanner_obj_t *self = self_in;
142
size_t key_count = common_hal_keypad_generic_get_key_count(self);
143
- memset(self->debounce_counter, self->debounce_threshold, key_count);
+ memset(self->debounce_counter, -self->debounce_threshold, key_count);
144
keypad_scan_now(self, port_get_raw_ticks(NULL));
145
}
146
0 commit comments