summaryrefslogtreecommitdiffstats
path: root/docs/zh-cn
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2021-09-22 00:40:19 +0100
committerGitHub <noreply@github.com>2021-09-21 16:40:19 -0700
commit45f88af4a12938072f58d89769145c46a30fb38c (patch)
treed7993f7bc01bd9eac5a7d6c5dc7dafb43f49d5df /docs/zh-cn
parentbb754069e95237bec69cc23845e2515eea5f33e4 (diff)
[Docs] update suspend_*_user examples (#14542)
Diffstat (limited to 'docs/zh-cn')
-rw-r--r--docs/zh-cn/custom_quantum_functions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/zh-cn/custom_quantum_functions.md b/docs/zh-cn/custom_quantum_functions.md
index 44cb5cf76d..1ae996e392 100644
--- a/docs/zh-cn/custom_quantum_functions.md
+++ b/docs/zh-cn/custom_quantum_functions.md
@@ -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
}
```