aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/avr/suspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/avr/suspend.c')
-rw-r--r--tmk_core/common/avr/suspend.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index a6f3c6441..8a7272bbc 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -114,8 +114,10 @@ bool suspend_wakeup_condition(void)
114 matrix_power_up(); 114 matrix_power_up();
115 matrix_scan(); 115 matrix_scan();
116 matrix_power_down(); 116 matrix_power_down();
117 if (matrix_key_count()) return true; 117 for (uint8_t r = 0; r < MATRIX_ROWS; r++) {
118 return false; 118 if (matrix_get_row(r)) return true;
119 }
120 return false;
119} 121}
120 122
121// run immediately after wakeup 123// run immediately after wakeup