Skip to content

Commit

Permalink
[Docs] update suspend_*_user examples (#14542)
Browse files Browse the repository at this point in the history
  • Loading branch information
daskygit committed Sep 21, 2021
1 parent bb75406 commit 45f88af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/custom_quantum_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ This is controlled by two functions: `suspend_power_down_*` and `suspend_wakeup_

```c
void suspend_power_down_user(void) {
rgb_matrix_set_suspend_state(true);
// code will run multiple times while keyboard is suspended
}

void suspend_wakeup_init_user(void) {
rgb_matrix_set_suspend_state(false);
// code will run on keyboard wakeup
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/ja/custom_quantum_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ void keyboard_post_init_user(void) {

```c
void suspend_power_down_user(void) {
rgb_matrix_set_suspend_state(true);
// code will run multiple times while keyboard is suspended
}

void suspend_wakeup_init_user(void) {
rgb_matrix_set_suspend_state(false);
// code will run on keyboard wakeup
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/zh-cn/custom_quantum_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ void keyboard_post_init_user(void) {
```c
void suspend_power_down_user(void) {
rgb_matrix_set_suspend_state(true);
// code will run multiple times while keyboard is suspended
}
void suspend_wakeup_init_user(void) {
rgb_matrix_set_suspend_state(false);
// code will run on keyboard wakeup
}
```

Expand Down

0 comments on commit 45f88af

Please sign in to comment.