summaryrefslogtreecommitdiff
path: root/tmk_core/common/avr/suspend.c
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-05-24 17:57:40 -0500
committerIBNobody <ibnobody@gmail.com>2016-05-24 17:57:40 -0500
commit26277dbdf40ba7247981361c956ea44c92bf76ea (patch)
tree59e800a739797cb86d9345d01f73fceee4c32030 /tmk_core/common/avr/suspend.c
parent76e36a787a58ad0e72fac579e4a02aa66ce26be1 (diff)
parent287eb7ad148abc8fe3fb014218d71e205fd9131d (diff)
Merge remote-tracking branch 'remotes/jackhumbert/master'
Diffstat (limited to 'tmk_core/common/avr/suspend.c')
-rw-r--r--tmk_core/common/avr/suspend.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index 4980680198..a6f3c64414 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -114,9 +114,7 @@ bool suspend_wakeup_condition(void)
matrix_power_up();
matrix_scan();
matrix_power_down();
- for (uint8_t r = 0; r < MATRIX_ROWS; r++) {
- if (matrix_get_row(r)) return true;
- }
+ if (matrix_key_count()) return true;
return false;
}
@@ -146,4 +144,3 @@ ISR(WDT_vect)
}
}
#endif
-