Optimize matrix scanning (#343)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user