forked from mirrors/qmk_userspace
Optimize matrix scanning (#343)
This commit is contained in:
parent
d66aa0abf9
commit
aaa758f1d3
21 changed files with 421 additions and 518 deletions
|
@ -114,9 +114,7 @@ bool suspend_wakeup_condition(void)
|
|||
matrix_power_up();
|
||||
matrix_scan();
|
||||
matrix_power_down();
|
||||
for (uint8_t r = 0; r < MATRIX_ROWS; r++) {
|
||||
if (matrix_get_row(r)) return true;
|
||||
}
|
||||
if (matrix_key_count()) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -146,4 +144,3 @@ ISR(WDT_vect)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue