HCoop
/
jackhill
/
qmk
/
firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cdaedb
)
[Keyboard] Add idle/wakeup function calls to Ergodox EZ (#6173)
author
Drashna Jaelre
<drashna@live.com>
Mon, 24 Jun 2019 16:22:05 +0000
(09:22 -0700)
committer
GitHub
<noreply@github.com>
Mon, 24 Jun 2019 16:22:05 +0000
(09:22 -0700)
keyboards/ergodox_ez/ergodox_ez.c
patch
|
blob
|
blame
|
history
diff --git
a/keyboards/ergodox_ez/ergodox_ez.c
b/keyboards/ergodox_ez/ergodox_ez.c
index
09443cf
..
947a173
100644
(file)
--- a/
keyboards/ergodox_ez/ergodox_ez.c
+++ b/
keyboards/ergodox_ez/ergodox_ez.c
@@
-304,4
+304,14
@@
led_config_t g_led_config = { {
4, 4, 1, 1, 1, 1
} };
+void suspend_power_down_kb(void) {
+ rgb_matrix_set_suspend_state(true);
+ suspend_power_down_user();
+}
+
+ void suspend_wakeup_init_kb(void) {
+ rgb_matrix_set_suspend_state(false);
+ suspend_wakeup_init_user();
+}
+
#endif