aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_dynamic_macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode/process_dynamic_macro.c')
-rw-r--r--quantum/process_keycode/process_dynamic_macro.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_dynamic_macro.c b/quantum/process_keycode/process_dynamic_macro.c
index 2065f242d..df3a8a812 100644
--- a/quantum/process_keycode/process_dynamic_macro.c
+++ b/quantum/process_keycode/process_dynamic_macro.c
@@ -216,11 +216,13 @@ bool process_dynamic_macro(uint16_t keycode, keyrecord_t *record) {
216 } else { 216 } else {
217 /* A macro is being recorded right now. */ 217 /* A macro is being recorded right now. */
218 switch (keycode) { 218 switch (keycode) {
219 case DYN_REC_START1:
220 case DYN_REC_START2:
219 case DYN_REC_STOP: 221 case DYN_REC_STOP:
220 /* Stop the macro recording. */ 222 /* Stop the macro recording. */
221 if (record->event.pressed) { /* Ignore the initial release 223 if (record->event.pressed ^ (keycode != DYN_REC_STOP)) { /* Ignore the initial release
222 * just after the recoding 224 * just after the recording
223 * starts. */ 225 * starts for DYN_REC_STOP. */
224 switch (macro_id) { 226 switch (macro_id) {
225 case 1: 227 case 1:
226 dynamic_macro_record_end(macro_buffer, macro_pointer, +1, &macro_end); 228 dynamic_macro_record_end(macro_buffer, macro_pointer, +1, &macro_end);