diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-07-04 11:45:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-04 11:45:58 -0400 |
commit | 8e88d55bfd7c88cb15845e0c6415e4e892532861 (patch) | |
tree | 281f82e47a34c9c7176537cdd85c76c387a8286d /tmk_core/common/avr | |
parent | 21ee3eb569caffdf2ad581c668682c0109c978e5 (diff) |
reverts #343 for the most part (#474)
Diffstat (limited to 'tmk_core/common/avr')
-rw-r--r-- | tmk_core/common/avr/suspend.c | 6 |
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 |