summaryrefslogtreecommitdiff
path: root/keyboards/gl516
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/gl516')
-rw-r--r--keyboards/gl516/n51gl/keymaps/salicylic/keymap.c4
-rw-r--r--keyboards/gl516/n51gl/keymaps/via/keymap.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/gl516/n51gl/keymaps/salicylic/keymap.c b/keyboards/gl516/n51gl/keymaps/salicylic/keymap.c
index 42b2204cf1..81f7b8665f 100644
--- a/keyboards/gl516/n51gl/keymaps/salicylic/keymap.c
+++ b/keyboards/gl516/n51gl/keymaps/salicylic/keymap.c
@@ -111,7 +111,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
key.row = 1;
key.col = 0;
}
- action_exec((keyevent_t){.key = key, .pressed = true, .time = (timer_read() | 1)});
- action_exec((keyevent_t){.key = key, .pressed = false, .time = (timer_read() | 1)});
+ action_exec(MAKE_KEYEVENT(key.row, key.col, true));
+ action_exec(MAKE_KEYEVENT(key.row, key.col, false));
return true;
}
diff --git a/keyboards/gl516/n51gl/keymaps/via/keymap.c b/keyboards/gl516/n51gl/keymaps/via/keymap.c
index a44392124c..cf1aa7d595 100644
--- a/keyboards/gl516/n51gl/keymaps/via/keymap.c
+++ b/keyboards/gl516/n51gl/keymaps/via/keymap.c
@@ -96,7 +96,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
key.row = 1;
key.col = 0;
}
- action_exec((keyevent_t){.key = key, .pressed = true, .time = (timer_read() | 1)});
- action_exec((keyevent_t){.key = key, .pressed = false, .time = (timer_read() | 1)});
+ action_exec(MAKE_KEYEVENT(key.row, key.col, true));
+ action_exec(MAKE_KEYEVENT(key.row, key.col, false));
return true;
}