Oneshot locked mods split transaction (#23434)
This commit is contained in:
parent
cd94664d15
commit
b99143fdd2
3 changed files with 7 additions and 1 deletions
|
@ -419,6 +419,10 @@ static bool mods_handlers_master(matrix_row_t master_matrix[], matrix_row_t slav
|
|||
if (!mods_need_sync && new_mods.oneshot_mods != split_shmem->mods.oneshot_mods) {
|
||||
mods_need_sync = true;
|
||||
}
|
||||
new_mods.oneshot_locked_mods = get_oneshot_locked_mods();
|
||||
if (!mods_need_sync && new_mods.oneshot_locked_mods != split_shmem->mods.oneshot_locked_mods) {
|
||||
mods_need_sync = true;
|
||||
}
|
||||
# endif // NO_ACTION_ONESHOT
|
||||
|
||||
bool okay = true;
|
||||
|
@ -442,6 +446,7 @@ static void mods_handlers_slave(matrix_row_t master_matrix[], matrix_row_t slave
|
|||
set_weak_mods(mods.weak_mods);
|
||||
# ifndef NO_ACTION_ONESHOT
|
||||
set_oneshot_mods(mods.oneshot_mods);
|
||||
set_oneshot_locked_mods(mods.oneshot_locked_mods);
|
||||
# endif
|
||||
}
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ typedef struct _split_mods_sync_t {
|
|||
uint8_t weak_mods;
|
||||
# ifndef NO_ACTION_ONESHOT
|
||||
uint8_t oneshot_mods;
|
||||
uint8_t oneshot_locked_mods;
|
||||
# endif // NO_ACTION_ONESHOT
|
||||
} split_mods_sync_t;
|
||||
#endif // SPLIT_MODS_ENABLE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue