Skip to content

Commit

Permalink
Merge pull request #17 from ErgoDox-EZ/fix/eager_pr_bug
Browse files Browse the repository at this point in the history
Fix the Eager Per Row debouncing bug
  • Loading branch information
fdidron authored Apr 18, 2019
2 parents 021df9d + c8cbf47 commit 0612c99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
04-12-2019 - Add AltGr/RALT support to Send String (qmk#4046)
04-12-2019 - Port DIRECT_PINS from split_common/matrix.c to matrix.c (qmk#5091)
04-12-2019 - Enhancement for Eager debouncing (and Ergodox EZ host sleep fix) (qmk#5621)
04-16-2019 - Fix logic for Combo feature (qmk#5610)
04-16-2019 - Fix info.json for Ergodox EZ
04-16-2019 - Add support for WS2812 based RGB Matrix
04-18-2019 - Set ErgodoxEZ default debounce to 5ms
04-12-2019 - Add AltGr/RALT support to Send String (qmk#4046)
04-12-2019 - Port DIRECT_PINS from split_common/matrix.c to matrix.c (qmk#5091)
04-12-2019 - Enhancement for Eager debouncing (and Ergodox EZ host sleep fix) (qmk#5621)
04-16-2019 - Fix logic for Combo feature (qmk#5610)
04-16-2019 - Fix info.json for Ergodox EZ
04-16-2019 - Add support for WS2812 based RGB Matrix
04-18-2019 - Fix Eager Per Row Debouncing bug
3 changes: 2 additions & 1 deletion quantum/debounce/eager_pr.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ void debounce_init(uint8_t num_rows) {

void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) {
uint8_t current_time = timer_read() % MAX_DEBOUNCE;
bool needed_update = counters_need_update;
if (counters_need_update) {
update_debounce_counters(num_rows, current_time);
}

if (changed) {
if (changed || (needed_update && !counters_need_update)) {
transfer_matrix_values(raw, cooked, num_rows, current_time);
}
}
Expand Down

0 comments on commit 0612c99

Please sign in to comment.