[Docs] update suspend_*_user examples (#14542)

This commit is contained in:
Dasky 2021-09-22 00:40:19 +01:00 committed by GitHub
parent bb754069e9
commit 45f88af4a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -214,11 +214,11 @@ This is controlled by two functions: `suspend_power_down_*` and `suspend_wakeup_
```c ```c
void suspend_power_down_user(void) { 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) { void suspend_wakeup_init_user(void) {
rgb_matrix_set_suspend_state(false); // code will run on keyboard wakeup
} }
``` ```

View File

@ -211,11 +211,11 @@ void keyboard_post_init_user(void) {
```c ```c
void suspend_power_down_user(void) { 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) { void suspend_wakeup_init_user(void) {
rgb_matrix_set_suspend_state(false); // code will run on keyboard wakeup
} }
``` ```

View File

@ -275,11 +275,11 @@ void keyboard_post_init_user(void) {
```c ```c
void suspend_power_down_user(void) { 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) { void suspend_wakeup_init_user(void) {
rgb_matrix_set_suspend_state(false); // code will run on keyboard wakeup
} }
``` ```