Merge pull request #17 from ErgoDox-EZ/fix/eager_pr_bug
Fix the Eager Per Row debouncing bug
This commit is contained in:
@@ -4,4 +4,4 @@
|
|||||||
04-16-2019 - Fix logic for Combo feature (qmk#5610)
|
04-16-2019 - Fix logic for Combo feature (qmk#5610)
|
||||||
04-16-2019 - Fix info.json for Ergodox EZ
|
04-16-2019 - Fix info.json for Ergodox EZ
|
||||||
04-16-2019 - Add support for WS2812 based RGB Matrix
|
04-16-2019 - Add support for WS2812 based RGB Matrix
|
||||||
04-18-2019 - Set ErgodoxEZ default debounce to 5ms
|
04-18-2019 - Fix Eager Per Row Debouncing bug
|
||||||
|
|||||||
@@ -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) {
|
void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) {
|
||||||
uint8_t current_time = timer_read() % MAX_DEBOUNCE;
|
uint8_t current_time = timer_read() % MAX_DEBOUNCE;
|
||||||
|
bool needed_update = counters_need_update;
|
||||||
if (counters_need_update) {
|
if (counters_need_update) {
|
||||||
update_debounce_counters(num_rows, current_time);
|
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);
|
transfer_matrix_values(raw, cooked, num_rows, current_time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user