summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-06-24 09:22:05 -0700
committerGitHub <noreply@github.com>2019-06-24 09:22:05 -0700
commit80a40807e36d89e722e9b80830d216ac3d41dfcb (patch)
tree6023a8e89659f3510d26139000c50a56175e4dbc
parent1cdaedbedf828301b4d881e6ecdc28f136731b4e (diff)
[Keyboard] Add idle/wakeup function calls to Ergodox EZ (#6173)
-rw-r--r--keyboards/ergodox_ez/ergodox_ez.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c
index 09443cf725..947a173e36 100644
--- 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