Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document syncing layer change callback across halves #23298

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Doc: comments for extra clarity
  • Loading branch information
BlueDrink9 authored Mar 17, 2024
commit 85e649824594e6961a4e32807b16ff536df6091c
2 changes: 2 additions & 0 deletions docs/feature_split_keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ QMK's split transport allows for arbitrary data transactions at both the keyboar
To leverage this, a keyboard or user/keymap can define a comma-separated list of _transaction IDs_:

```c
// *_SYNC_* names can be called whatever you want, so long as they are passed to transaction_register_rpc with the function they apply to
// for keyboard-level data sync:
#define SPLIT_TRANSACTION_IDS_KB KEYBOARD_SYNC_A, KEYBOARD_SYNC_B
// or, for user:
Expand Down Expand Up @@ -395,6 +396,7 @@ void keyboard_post_init_user(void) {

void housekeeping_task_user(void) {
if (is_keyboard_master()){
// 24 is arbitrary int8
transaction_rpc_exec(USER_SYNC_A, 24, NULL, 0, NULL);
}
}
Expand Down
Loading