aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/avr/suspend.c
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/suspend.c
parent21ee3eb569caffdf2ad581c668682c0109c978e5 (diff)
downloadqmk_firmware-8e88d55bfd7c88cb15845e0c6415e4e892532861.tar.gz
qmk_firmware-8e88d55bfd7c88cb15845e0c6415e4e892532861.zip
reverts #343 for the most part (#474)
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