Skip to content

Commit

Permalink
[Keyboard] Add idle/wakeup function calls to Ergodox EZ (qmk#6173)
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna authored Jun 24, 2019
1 parent 1cdaedb commit 80a4080
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keyboards/ergodox_ez/ergodox_ez.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 80a4080

Please sign in to comment.