summaryrefslogtreecommitdiff
path: root/tmk_core/common/avr
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-07-04 11:45:58 -0400
committerGitHub <noreply@github.com>2016-07-04 11:45:58 -0400
commit8e88d55bfd7c88cb15845e0c6415e4e892532861 (patch)
tree281f82e47a34c9c7176537cdd85c76c387a8286d /tmk_core/common/avr
parent21ee3eb569caffdf2ad581c668682c0109c978e5 (diff)
reverts #343 for the most part (#474)
Diffstat (limited to 'tmk_core/common/avr')
-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 a6f3c64414..8a7272bbc5 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -114,8 +114,10 @@ bool suspend_wakeup_condition(void)
matrix_power_up();
matrix_scan();
matrix_power_down();
- if (matrix_key_count()) return true;
- return false;
+ for (uint8_t r = 0; r < MATRIX_ROWS; r++) {
+ if (matrix_get_row(r)) return true;
+ }
+ return false;
}
// run immediately after wakeup