summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/avr/suspend.c
diff options
context:
space:
mode:
authorJoshua Colbeck <Skrymir@users.noreply.github.com>2016-07-07 03:29:29 +0200
committerGitHub <noreply@github.com>2016-07-07 03:29:29 +0200
commite0e1c119f0c54ff7b69bf8eaa9e641b60610b4d9 (patch)
tree67aebd55b1538035a1e5839eff3bb66f89d2aca2 /tmk_core/common/avr/suspend.c
parent21ee3eb569caffdf2ad581c668682c0109c978e5 (diff)
parent5ed673d82d6cf91aa966a3e903ac37adb519f12c (diff)
downloadqmk_firmware-e0e1c119f0c54ff7b69bf8eaa9e641b60610b4d9.tar.gz
qmk_firmware-e0e1c119f0c54ff7b69bf8eaa9e641b60610b4d9.tar.xz
Merge pull request #1 from Skrymir/patch-1
add ergodox layout
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)
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