diff options
| author | Joshua Colbeck <[email protected]> | 2016-07-06 20:29:29 -0500 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2016-07-06 20:29:29 -0500 | 
| commit | e0e1c119f0c54ff7b69bf8eaa9e641b60610b4d9 (patch) | |
| tree | 67aebd55b1538035a1e5839eff3bb66f89d2aca2 /tmk_core/common/avr/suspend.c | |
| parent | 21ee3eb569caffdf2ad581c668682c0109c978e5 (diff) | |
| parent | 5ed673d82d6cf91aa966a3e903ac37adb519f12c (diff) | |
| download | qmk_firmware-e0e1c119f0c54ff7b69bf8eaa9e641b60610b4d9.tar.gz qmk_firmware-e0e1c119f0c54ff7b69bf8eaa9e641b60610b4d9.zip | |
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.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 | 
