summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/avr
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-07-04 17:45:58 +0200
committerGitHub <noreply@github.com>2016-07-04 17:45:58 +0200
commit8e88d55bfd7c88cb15845e0c6415e4e892532861 (patch)
tree281f82e47a34c9c7176537cdd85c76c387a8286d /tmk_core/common/avr
parent21ee3eb569caffdf2ad581c668682c0109c978e5 (diff)
downloadqmk_firmware-8e88d55bfd7c88cb15845e0c6415e4e892532861.tar.gz
qmk_firmware-8e88d55bfd7c88cb15845e0c6415e4e892532861.tar.xz
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 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)
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