]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Add idle/wakeup function calls to Ergodox EZ (#6173)
authorDrashna Jaelre <drashna@live.com>
Mon, 24 Jun 2019 16:22:05 +0000 (09:22 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Jun 2019 16:22:05 +0000 (09:22 -0700)
keyboards/ergodox_ez/ergodox_ez.c

index 09443cf72529bed15484cba780a3ca1ca5a62be9..947a173e369276ba197b6e5b744cc106a09ada2d 100644 (file)
@@ -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